I just downloaded the solr 4 beta, and was running through the tutorial.  It 
seemed to me that I was getting duplicate counts in my facet fields when I had 
two shards and four cores running. For example, 
http://localhost:8983/solr/collection1/browse
Reports 21 entries in the facet cat:electronics, but if I click on that facet, 
there are only 14 results, and it still reports 21 entries for cat:electronics.

Is this a known bug?

-----Original Message-----
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Tuesday, August 14, 2012 7:16 AM
To: solr-user@lucene.apache.org
Subject: Re: Distributed Searching + unique Ids

Don't do this. Many bits of sharding assume that a uniqueKey
exists on one and only one shard. Document counts may be
off. Faceting may be off.  Etc.

Why do you want to duplicate records across shards? What
benefit is this providing?

This feels like an XY problem...

Best
Erick

On Fri, Aug 10, 2012 at 1:10 PM, Eric Khoury <ekhour...@hotmail.com> wrote:
>
>
>
>
> hey guys, the spec mentions the following:
>
>
>  The unique
>      key field must be unique across all shards. If docs with
>      duplicate unique keys are encountered, Solr will make an attempt to 
> return
>      valid results, but the behavior may be non-deterministic.
>
>
> I'm actually looking to duplicate certain objects across shards, and hoping 
> to have duplicates removed when querying over all shards.If these duplicates 
> have the same ids, will that work?  Will this cause chaos with paging?  I 
> imagine that it might affect faceting as well?thanks,Eric.

Reply via email to