xml – 错误404:Prob访问/ solr / update.原因:未找到
发布时间:2020-12-16 07:50:59 所属栏目:百科 来源:网络整理
导读:我已经按照 solr tutorial并将默认的collection1重命名为core1,但是当我收到错误404尝试使用以下命令将XML导入solr时: curl http://127.0.0.1:8983/solr/update --data-binary @monitor.xml -H 'Content-type:application/xml' 以下是回复: h2HTTP ERROR 4
我已经按照
solr tutorial并将默认的collection1重命名为core1,但是当我收到错误404尝试使用以下命令将XML导入solr时:
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,则应运行以下命令:
curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml' 也就是说,在“solr”和动作之间添加集合名称 – 同样适用于查询: http://localhost:8983/solr/core1/select?q=solr&wt=xml (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |