Search code examples
apachesolrdataimporthandler

apache solr 6 multiple dataimporthandler


I want to index from two different databases. Therefore I make two data-config.xml files with different names. I integrate in solrconfig.xml file two requestHandler with DataimportHandler.

<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">   
<lst name="defaults">  
  <str name="config">data-config-847.xml</str>
</lst> 

<requestHandler name="/dataimport857" class="org.apache.solr.handler.dataimport.DataImportHandler">   
<lst name="defaults">  
  <str name="config">data-config-857.xml</str>
</lst> 

But it does not function. I did the same configuration in solr 4.7, it function without problem. What ist different between solr 4.7 and solr 6.0? Or how it function?


Solution

  • It is probably SOLR-8993 affecting new Admin UI.

    Workarounds:

    • Use legacy Admin UI, accessible through a link on the top of the screen
    • Pass config value as a URL parameter invoking DIH URL directly and not via Admin UI. The defaults section is just that - defaults that can be overridden with URL parameters.