Reputation: 17650
I have seen some other questions on this topic. However, they do not address the general nature of what exactly a "content stream" is.
What is a "content stream" in solr, and what is the significance of this message? For example, often when we get a CONNECTION FAILURE in an SQL database, it means simply that there is no route to the database server. In this same idiom: what is the meaning of a missing "content stream" when we are writing to Solr?
What do we need to verify in our java apps before writing to a Solr Core?
Upvotes: 3
Views: 9945
Reputation: 1559
Upvotes: 1
Reputation: 22555
You are using the Solr Update request handler that expects an http POST stream of XML documents to be sent. So in this case if you are not passing any documents to be posted when calling the url, you will get the "missing content stream message".
In your Java apps you need to verify that you are passing an appropriate content stream and parameters to Solr. You can get more details on the UpdateXMLMessages wiki page.
Also, you might want to consider using the SolrJ Java client to write and query the Solr index.
Upvotes: 4