[ACCEPTED]-org.apache.solr.common.SolrException: missing content stream-solr

Accepted answer
Score: 11

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

Score: 10

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

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

This can also 3 happen through SolrJ/spring-data-solr if 2 you try to persist an empty collection of 1 documents.

So solrClient.add(new ArrayList<SolrInputDocument>(), 10000);

would also cause the error.

More Related questions