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