We are not doing anything special in terms of routing. 

The issue seems fixed after setting numShards=2 parameter in solr.in.cmd file. 

set -DnumShards=2


Not sure if anything changed in solr 5.2 which requires to add this parameter 
in solr.in.cmd file. In Solr 4.8 it was working fine even without this 
parameter in solr.in.cmd file.


Regards,

Maulin

-----Original Message-----
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: 28 August 2015 21:07
To: solr-user@lucene.apache.org
Subject: Re: Solr 5.2: Same Document in Multiple Shard

Have you done anything special in terms of routing or are you using the default 
compositeId? How are you indexing? Docs are considered "identical" in Solr 
based solely on the <uniqueKey> field. If that's the absolute same (possibly 
including extra whitespace) then this shouldn't be happening, nobody else has 
reported this, so I suspect there's something about your setup that's odd.

The clusterstate for the collection would be interesting to see, as well as 
your schema definition for your ID field.

Best,
Erick

On Fri, Aug 28, 2015 at 12:52 AM, Maulin Rathod <mrat...@asite.com> wrote:
> We have recently upgraded solr from 4.8 to 5.2. We have 2 shard and 2 replica 
> in solr cloud. It shows correctly in SolrCloud via Solr Admin Panel.
>
> We found that sometimes same document is available in both the shards. We 
> confirmed via querying individual shard (from solr admin by passing shards 
> parameter).
>
> Can it be due to some configuration issue? How can we fix it?
>
> -Maulin
>
> [CC Award Winners 2014]
>

Reply via email to