문제

I need to import several databases and rss sources using DIH.

Is there any possibility to use more than one data-config.xml? Or even if using only one, is there any way to configure different import handlers?

Thanks.

도움이 되었습니까?

해결책

You can create multiple datasources in any DIH config.

If that doesn't cut it, you can create multiple request handlers in solrconfig.xml. One of the parameter of the handler configuration is "config" which defines the xml. So you could have --

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

and ...

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top