I was trying to use DataImportHandler to index my MySQL Database using Solr in Cloud Mode, the following are the configurations it uses the _default configsets.
solr-7.3.0\server\solr\configsets\_default\conf\data-config.xml
# define data source
<dataConfig>
<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/expressg_dbkevinzeigler" user="root" password=""/>
<document>
<entity name="product"
pk="id_prd"
query="SELECT id_prd, name_prd, description_prd FROM products_prd">
<field column="id_prd" name="id"/>
<field column="name_prd" name="name"/>
</entity>
</document>
</dataConfig>
Added the following to: solr-7.3.0\server\solr\configsets\_default\conf\solrconfig.xml
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-7.3.0.jar" />
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-7.3.0-extras.jar" />
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
Added the following to: solr-7.3.0\server\solr\configsets\_default\conf\managed-schema.xml
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="name" type="string" indexed="true" stored="true" multiValued="false" />
When I tried DataImport in Solr Admin on my current collection it says:
"The solrconfig.xml file for this index does not have an operational DataImportHandler defined!"
Anybody encounter the same?