错误 404:可能正在访问/solr/update.原因:未找到 [英] Error 404: Prob accessing /solr/update. Reason: Not Found

查看:28
本文介绍了错误 404:可能正在访问/solr/update.原因:未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了 solr 教程,并将默认的 collection1 重命名为 core1,但是当我尝试使用以下命令将 XML 导入到 solr 时遇到错误 404:

I've followed the solr tutorial and renamed the default collection1 to core1, but when I'm getting error 404 trying to import a XML to solr using the following command:

curl http://127.0.0.1:8983/solr/update --data-binary @monitor.xml -H 'Content-type:application/xml'

回复如下:

<h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/update. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i>

推荐答案

如果您将集合重命名为 core1,您应该运行以下命令:

If you rename the collection to core1 you should be running this command:

curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml'

也就是说,您在solr"和操作之间添加集合名称——同样的事情也适用于查询:

That is, you add the collection name in between "solr" and the action - same thing applies for queries:

http://localhost:8983/solr/core1/select?q=solr&wt=xml

这篇关于错误 404:可能正在访问/solr/update.原因:未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆