老师为什么我无论什么命令写在第二行选择执行的话都会报下面这个错,只要把第二行命令放在第一行就是一个查询窗口只有一条语句时它就能运行,如果多一行选择他就运行不出来,每次敲的时候都要敲一行运行完清一次窗口
执行
后
在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有错误。