On 2/20/2015 6:38 AM, Nitin Solanki wrote:
> I mean embedded Solr .
> 
> On Fri, Feb 20, 2015 at 7:05 PM, Alexandre Rafalovitch <arafa...@gmail.com>
> wrote:
> 
>> This question makes no sense. Do you mean embedded Solr vs Standalone?
>>
>> Regards,
>>     Alex
>> On 20 Feb 2015 3:30 am, "Nitin Solanki" <nitinml...@gmail.com> wrote:
>>
>>> Hi,
>>>           What is the advantages of java programming with Solr over Solr
>>> API?

Standalone Solr offers the admin UI and the ability to do some of your
testing with hand-typed URLs in a browser.  The embedded server is
completely unreachable from anywhere but the java program that embeds
it, and has no options for redundancy and high availability.

The Java client implementations offer objects and methods that are very
easy for a java developer to understand and write with a very small
amount of code, and do not require any user code for building URLs or
communicating over HTTP.

If you were thinking about using EmbeddedSolrServer, you can use one of
the other SolrServer (SolrClient in 5.0) implementations instead with a
standalone Solr installation.  The resulting client code will be nearly
identical to what you'd use with EmbeddedSolrServer, because
EmbeddedSolrServer is simply another implementation of the same abstract
class and interfaces that are used by objects like HttpSolrServer and
CloudSolrServer (Server is replaced by Client in 5.0).

Thanks,
Shawn

Reply via email to