Thanks Eric, what about document is committed to master?Then document should be 
visible from master. Is that correct?

I was using replication with repeater mode because LBHttpSolrServer can send 
write request to any of the Solr server, and that Solr should index the 
document because it a master. we have a polling interval of 2 sec. After 
polling interval slave can poll the data. It is worth to mention here is 
application request the commit command. 

If document is committed to master and a search request coming to the same 
master then document should be retrieved. Irrespective of replication because 
master doesn't know who the slave are?

In repeater mode document can be indexed on both the Solr instance. Is that 
understanding correct?

Also why you say that commit is inappropriate? 





Rgds
AJ

> On Jun 5, 2015, at 11:16 PM, Erick Erickson <erickerick...@gmail.com> wrote:
> 
> You have to provide a _lot_ more details. You say:
> "The problem... some data was not get indexed... still sometime we
> found that documents are not getting indexed".
> 
> Neither of these should be happening, so I suspect
> 1> you're expectations aren't correct. For instance, in the
> master/slave setup you won't see docs on the slave until after the
> polling interval is expired and the index is replicated.
> 2> In SolrCloud you aren't committing appropriately.
> 
> You might review: http://wiki.apache.org/solr/UsingMailingLists
> 
> Best,
> Erick
> 
> 
>> On Fri, Jun 5, 2015 at 9:45 AM, Amit Jha <shanuu....@gmail.com> wrote:
>> I want to have realtime index and realtime search.
>> 
>> Rgds
>> AJ
>> 
>>> On Jun 5, 2015, at 10:12 PM, Amit Jha <shanuu....@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> In my use case, I am adding a document to Solr through spring application 
>>> using spring-data-solr. This setup works well with single Solr. In current 
>>> setup it is single point of failure. So we decided to use solr replication 
>>> because we also need centralized search. Therefore we setup two instances 
>>> both in repeater mode. The problem with this setup was, some time data was 
>>> not get indexed. So we moved to SolrCloud, with 3zk and 2 shards and 2 
>>> replica setup, but still sometime we found that documents are not getting 
>>> indexed.
>>> 
>>> I would like to know what is the best way to have highly available setup.
>>> 
>>> Rgds
>>> AJ

Reply via email to