Error 404: Prob accessing /solr/update. Reason: Not Found

后端 未结 2 1993
暗喜
暗喜 2020-12-29 10:58

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:

相关标签:
2条回答
  • 2020-12-29 11:19

    I was working with SolrNet and I get the same error. What I did was:

    • Run Solr with products: $solr-5.5.0\bin>solr start -e techproducts
    • Change SolrNet Sample App
      • web.config SolrUrl from http://localhost:8983/solr to http://localhost:8983/solr/techproducts
      • Global.asax.cs comment out the call to the method AddInitialDocuments()
    • Run the SolrNet Sample App
    0 讨论(0)
  • 2020-12-29 11:30

    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'
    

    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
    
    0 讨论(0)
提交回复
热议问题