org.apache.solr.common.SolrException: missing cont

2019-04-06 17:12发布

问题:

I have installed Apache Solr with Tomcat and my /solr/admin is working fine. But when I try to issue /solr/update I am getting the following error. What could be the reason?

org.apache.solr.common.SolrException: missing content stream

回答1:

If you add commit parameter i.e. ?commit=true, it will work



回答2:

/solr/update will look for any input documents to be indexed. Running plain /solr/update will cause this exception since there is no input for it. The easiest way to run it is like,

java -Durl=localhost:8080/<your apache solr context path, mostly solr>/update -jar post.jar *.xml


标签: solr