错误404:Prob访问/ solr/update.原因:未找到

and*_*ade 10 xml lucene solr

我已经按照solr教程将默认的collection1重命名为core1,但是当我收到错误404尝试使用以下命令将XML导入solr时:

curl http://127.0.0.1:8983/solr/update --data-binary @monitor.xml -H 'Content-type:application/xml'
Run Code Online (Sandbox Code Playgroud)

以下是回复:

<h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/update. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i>
Run Code Online (Sandbox Code Playgroud)

Joh*_*one 22

如果将集合重命名为core1,则应运行此命令:

curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml'
Run Code Online (Sandbox Code Playgroud)

也就是说,在"solr"和动作之间添加集合名称 - 同样适用于查询:

http://localhost:8983/solr/core1/select?q=solr&wt=xml
Run Code Online (Sandbox Code Playgroud)

  • 哇......新手错误!这解决了这个问题.谢谢! (2认同)