Java 使用post.jar索引文件时缺少内容流错误
刚刚第一次安装了Solr(4.9.0),并在RHEL上的Tomcat中运行。 我正在尝试使用..为包含单个xml文件的文件夹编制索引Java 使用post.jar索引文件时缺少内容流错误,java,solr,Java,Solr,刚刚第一次安装了Solr(4.9.0),并在RHEL上的Tomcat中运行。 我正在尝试使用..为包含单个xml文件的文件夹编制索引 java -Durl=http://localhost:8081/solr/update -jar post.jar *.xml 其进展如下 java -Durl=htp://localhost:8081/solr/update -jar post.jar *xml SimplePostTool version 1.5 Posting files to base
java -Durl=http://localhost:8081/solr/update -jar post.jar *.xml
其进展如下
java -Durl=htp://localhost:8081/solr/update -jar post.jar *xml
SimplePostTool version 1.5
Posting files to base url htp://localhost:8081/solr/update using content-type application/xml..
POSTing file 1870_reservations.shp.xml
1 files indexed.
COMMITting Solr index changes to htp://localhost:8081/solr/update..
Time spent: 0:00:00.080
但是,我的solr/update页面仅显示
<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">0</int>
</lst>
<lst name="error">
<str name="msg">missing content stream</str>
<int name="code">400</int>
</lst>
</response>
400
0
缺少内容流
400
Solr日志也表明了同样的情况。你知道为什么终端会显示成功,而Sol
有什么建议吗?谢谢。你说的“然而,我的解决方案/更新页面正在显示”是什么意思?您在浏览器中打开/solr/update url还是什么?您可能希望查看管理界面,然后向您的集合发出查询。