Java 执行索引过程时,Solr返回了错误#400错误请求
我更改了solr.xml和monitor.xml文件中的信息,重新编制索引并查看下一步 我的指令:Java 执行索引过程时,Solr返回了错误#400错误请求,java,solr,Java,Solr,我更改了solr.xml和monitor.xml文件中的信息,重新编制索引并查看下一步 我的指令: D:\solr-4.6.0\solr-4.6.0\example\exampledocs>java -jar post.jar solr.xml monitor.xml SimplePostTool version 1.5 Posting files to base url http://localhost:8983/solr/update using content-type applic
D:\solr-4.6.0\solr-4.6.0\example\exampledocs>java -jar post.jar solr.xml monitor.xml
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/update using content-type application/xml..
POSTing file solr.xml
SimplePostTool: WARNING: Solr returned an error #400 Bad Request
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 400 fo
r URL: http://localhost:8983/solr/update
POSTing file monitor.xml
SimplePostTool: WARNING: Solr returned an error #400 Bad Request
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 400 fo
r URL: http://localhost:8983/solr/update
2 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/update..
Time spent: 0:00:00.061
在它之后,如果我使用q=*:*
-我在这些文档中没有看到新字段
我错了什么?从日志中看,您似乎对驻留在/solr/example/exampledocs文件夹中的solr.xml/monitor.xml文件做了一些更改。您可以用solr.zip中的原始文件再次替换该文件,这是SimplePostTool日志…您也可以发布solr日志吗?什么是monitor.xml?下载包附带的示例文件之一?您对solr.xml做了什么样的更改?