What I am trying to do is to index document using Solr.
I have installed and started Solr server on a Windows environment and I am trying to index using SolrJ.
However when I try to add the solr document to the server as shown below it results in the an error
server.add(indexDoc);
Error
Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/update. Reason:
<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
What would be the possible reason for this issue.
I think the 404 error is more relevant to your problem... See this: Error 404: Prob accessing /solr/update. Reason: Not Found
You're missing your collection name in the URL.