在索引中索引.xml文件时出错

时间:2014-03-21 06:45:10

标签: solr solr-cell

我正在尝试使用以下命令索引solr搜索引擎中的xml文件:

java -Durl=http://10.1.11.143:8080/solr/#/ -jar post.jar solr.xml

但我收到以下错误:

SimplePostTool version 1.5
Posting files to base url http://10.1.11.143:8080/solr/#/ using content-type application/xml..
POSTing file solr.xml
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error
SimplePostTool: WARNING: IOException while reading response: java.io.IOException:    Server returned HTTP response code: 500 for URL: http://10.1.11.143:8080/solr/#/
1 files indexed.
COMMITting Solr index changes to http://10.1.11.143:8080/solr/#/..
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error for url http://10.1.11.143:8080/solr/#/?commit=true
Time spent: 0:00:00.017

请帮我解决这个错误。 solr.xml的内容如图所示: enter image description here

1 个答案:

答案 0 :(得分:1)

问题在于URL。更新时你没有提到任何requestHandler。使用以下命令。它会起作用。

java -Durl=http://10.1.11.143:8080/solr/update?commit=true -jar post.jar solr.xml

/update是将数据索引到Solr的requestHandler。

相关问题