Thanks Alex and Shawn,

Yes, I have given the wrong URL. I have change the default name and I am
not specified that in the URL.
Issue resolved after correcting the URL

many thanks

On Mon, Oct 6, 2014 at 6:51 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 10/6/2014 7:00 AM, Danesh Kuruppu wrote:
> > Thanks for quick response Shawn.
> >
> > I upgrade to the server and create new HttpSolrServer. when I try to add
> > document to the solr server, I am getting following error.
> >
> > org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
> >> Expected mime type application/octet-stream but got text/html.
>
> I've never seen that exact error, but I suspect that it's happening
> because you've provided an incorrect URL to the HttpSolrServer
> constructor.  It should look like the following:
>
> http://server:port/solr/corename
>
> A fully fleshed out example with an IP address instead of a DNS name:
>
> http://10.1.1.54:8983/solr/collection1
>
> If you've provided a URL with a # character in it, that is a URL for the
> admin UI, which will only work correctly in a browser.  I think we might
> want to check for that in Solr code and give the user a meaningful
> message in the exception, which will get propagated to SolrJ.
>
> Thanks,
> Shawn
>
>

Reply via email to