I think you're confusing cores and shards. The comments about distributed
functionality are for a _sharded_ index. A sharded index simply breaks up
a single logical index into parts (shards) and, when the configuration is
set
up, queries are automatically sent to all shards and the results collated.
Even
in this case, though, care must be taken that no documents in separate
shards have the same ID (uniqueKey) or your results will be wonky. So your
example won't work well even in a sharded situation.

But what you describe is separate cores. Cores are simply completely
distinct
indexes that happen to be served by a single Solr instance, they have
no knowledge of each other so I don't see how you'd be able to get what
you're looking for.

Best
Erick

P.S. I'm cheating a little when I say cores "have no knowledge of each
other",
there is the  a restricted case of "cross core joins", but
that's not germain to your problem.

On Sat, Oct 20, 2012 at 3:49 PM, Kenneth Vindum <k...@industry-supply.dk>wrote:

> Hi Solr users!****
>
> ** **
>
> Could any of you tell me how to do a facet count across several cores
> excluding duplicates. Eg.****
>
> ** **
>
> Core A:****
>
> Page 1****
>
> Id=a****
>
> Text=hello world****
>
> ** **
>
> Page 2****
>
> Id=b****
>
> Text=hello again****
>
> ** **
>
> Core B:****
>
> Page 1****
>
> Id=a****
>
> Text=Hej verden****
>
> ** **
>
> Id=c****
>
> Text=Ny besked****
>
> ** **
>
> Doing a facet count on core A gives me 2 elements. Doing a facet count on
> core B gives me two element as well. Counting across both cores using
> shards should return 3 elements when doing group.truncate on the element
> with Id=a. This would work on a single core, but doing so on more than one
> core always gives me a facet count = 4.****
>
> ** **
>
> I’ve read the solr 
> page<http://wiki.apache.org/solr/FieldCollapsing#Known_Limitations>saying
> ****
>
> Grouping is also supported for distributed searches from version [image:
> <!>] Solr3.5 <http://wiki.apache.org/solr/Solr3.5> and from version [image:
> <!>] Solr4.0 <http://wiki.apache.org/solr/Solr4.0>. Currently
> group.truncate and group.func are the only parameters that aren't supported
> for distributed searches.****
>
> ** **
>
> Is this because it’s not possible to make this feature, or is it because
> nobody needed it yet?****
>
> ** **
>
> Thanks guys :)****
>
> ** **
>
> Kind regards****
>
> Kenneth Vindum****
>
> ** **
>

Reply via email to