Hold on here. LBHttpSolrServer should not be used for indexing in a
Master/Slave setup, but in SolrCloud you may use it. Indeed,
CloudSolrServer uses LBHttpSolrServer under the covers.

Now, why would you want to send requests to both servers? If you're in
master/slave mode (i.e. not running Zookeeper), you _must_ send the update
to the right master. If you're in SolrCloud mode, you don't care. You have
to send each document to Solr only once. In Master/Slave mode, you must
send it to the correct master. In SolrCloud mode you don't care where you
send it, it'll be routed to the right place.

Best
Erick


On Tue, Feb 12, 2013 at 8:22 AM, J Mohamed Zahoor <zah...@indix.com> wrote:

> Hi
>
> I have multi shard replicated index spread across two machines.
>
> Once a week, i delete the entire index and create it from scratch.
> Today i am using ConcurrentUpdateSolrServer in solrj to add documents to
> the index.
>
> I want to add documents through both the servers.. to utilise the
> resources...
> i read in wiki (i think)  that LBHttpSolrServer should not be used for
> indexing documents.
>
> Is there any other way to send request to both the servers without using
> any external load balancers?
> I am using Solr 4.1.
>
> ./zahoor

Reply via email to