简体   繁体   English

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

[英]Error while indexing .xml files in solr

I am trying to index xml files in solr search engine using following command: 我正在尝试使用以下命令在solr搜索引擎中索引xml文件:

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

But I am getting following error: 但是我收到以下错误:

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

Please help me to come out of this error. 请帮助我摆脱这个错误。 Content of solr.xml is as shown in the picture: solr.xml的内容如图所示: 在此处输入图片说明

The issue is because of the URL. 问题是由于URL。 You didn't mention any requestHandler while updating. 您在更新时没有提及任何requestHandler。 Use the following command. 使用以下命令。 It'll work. 会的

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

/update is the requestHandler to index data into Solr. /update是将数据索引到Solr中的requestHandler。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM