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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
/solr/updatewill look for any input documents to be indexed. Running plain/solr/updatewill cause this exception since there is no input for it. The easiest way to run it is like,This can also happen through SolrJ/spring-data-solr if you try to persist an empty collection of documents.
So
solrClient.add(new ArrayList<SolrInputDocument>(), 10000);would also cause the error.