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.
> <html><head><title>Apache Tomcat/7.0.52 - Error report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
> </head><body><h1>HTTP Status 404 - /solr/update</h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
> <u>/solr/update</u></p><p><b>description</b> <u>The requested resource is
> not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/7.0.52</h3></body></html>

    at
> org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:512)
>     at
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
>     at
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
>     at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
>     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)
>

Please help me to solve this issue

Thanks


On Thu, Oct 2, 2014 at 6:55 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 10/1/2014 11:23 PM, Danesh Kuruppu wrote:
> > Currently we are using solr for service meta data indexing and Searching
> .
> > we have embedded solr server running in our application and we are using
> > solr 1.4 version. Have some doubts to be clear.
> >
> > 1. What are the performance improvements we can gain from updating to the
> > latest solr version(4.10.1).
>
> One of the key areas that's better/faster is indexing, but there are
> performance improvements for querying too.  Solr and Lucene have evolved
> considerably in the four years since Solr 1.4 (using Lucene 2.9)
> was released.
>
> > 2. Currently we are using embedded solr, I have an idea of moving to
> > standalone server. What is best way of using standalone server in our
> java
> > webapp.
>
> The embedded server is still available, although even in 1.4 it was not
> recommended for anything but a proof of concept.  You should simply
> install one or more standalone servers and access them from your app via
> http.  On a LAN, the overhead introduced by http is minimal.
>
> Since you're already using the embedded server, that's simply a
> matter of changing EmbeddedSolrServer to HttpSolrServer or
> CloudSolrServer (depending on whether or not you use SolrCloud).  You
> can also remove the solr-* and lucene-* jars from your classpath ... you
> just need the solrj jar and its "standard" dependencies, which can be
> found in the binary download or the compiled source code under
> dist/solrj-lib.
>
> Thanks,
> Shawn
>

Reply via email to