执行
后
在solrconfig.xml中加入以下配置:
<!-- 配置数据导入的请求处理器-->
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">-->
<!-- See below for information on defining
updateRequestProcessorChains that can be used by name
on each Update Request
-->
<!-- 加载数据导入文件,该文件中会定义sql语句,对数据库进行查询 -->
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
然后执行:
http://localhost:8083/solr/admin/collections?action=RELOAD&name=collection2
出现以下错误 collection2_shard2_replica1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core collection2_shard2_replica1: Error loading solr config from solrconfig.xml 请问老师,这个还应该怎么配置?说是solrconfig.xml有错误。