Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 执行索引过程时,Solr返回了错误#400错误请求_Java_Solr - Fatal编程技术网

Java 执行索引过程时,Solr返回了错误#400错误请求

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

我更改了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 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做了什么样的更改?