Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.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
错误404:Prob访问/solr/update。原因:找不到 curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml'_Xml_Solr_Lucene - Fatal编程技术网

错误404:Prob访问/solr/update。原因:找不到 curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml'

错误404:Prob访问/solr/update。原因:找不到 curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml',xml,solr,lucene,Xml,Solr,Lucene,我遵循了,并将默认collection1重命名为core1,但当我尝试使用以下命令将XML导入solr时出现错误404: 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. Reas

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

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>
HTTP错误404 访问/solr/update时出现问题。原因:
curl http://127.0.0.1:8983/solr/core1/update --data-binary @monitor.xml -H 'Content-type:application/xml'
未找到


由码头供电://
如果将集合重命名为core1,则应运行以下命令:

curl http://127.0.0.1:8983/solr/update --data-binary @monitor.xml -H 'Content-type:application/xml'
http://localhost:8983/solr/core1/select?q=solr&wt=xml
也就是说,在“solr”和操作之间添加集合名称-同样的事情也适用于查询:


我和SolrNet一起工作,我也犯了同样的错误。 我所做的是:

  • 使用以下产品运行Solr:
    $Solr-5.5.0\bin>Solr start-e techproducts
  • 更改SolrNet示例应用程序
    • web.config
      SolrUrl
      from
      http://localhost:8983/solr
      http://localhost:8983/solr/techproducts
    • Global.asax.cs注释掉对方法的调用
      AddInitialDocuments()
  • 运行SolrNet示例应用程序

很高兴为您提供帮助,如果您发现答案有用并解决了您的问题,请接受答案。@JohnPetrone,我也遇到了类似的错误。我从最近两天开始一直在努力。我在这里发帖--需要你的帮助。