Re: FieldCollapsing issues in SolrCloud 4.4

2013-07-31 Thread Paul Masurel
If your issue is that you want to retrieve the number of groups, group.ngroups will return the sum of the number of groups per shard. This is not the number of groups overall as there if some groups are present on more than one shard. To make sure that this does not happen, one can choose to dist

Re: FieldCollapsing issues in SolrCloud 4.4

2013-07-31 Thread Ali, Saqib
Hello Paul, Can you please explain what you mean by: "To get the exact number of groups, you need to shard along your grouping field" Thanks! :) On Wed, Jul 31, 2013 at 3:08 AM, Paul Masurel wrote: > Do you mean you get different results with group=true? > numFound is supposed returns the numb

Re: FieldCollapsing issues in SolrCloud 4.4

2013-07-31 Thread Paul Masurel
Do you mean you get different results with group=true? numFound is supposed returns the number of ungrouped hits. To get the number of groups, you are expected to set set group.ngroups=true. Even then, the result will only give you an upperbound in a distributed environment. To get the exact numbe

FieldCollapsing issues in SolrCloud 4.4

2013-07-30 Thread Ali, Saqib
Hello all, Is anyone experiencing issues with the numFound when using group=true in SolrCloud 4.4? Sometimes the results are off for us. I will post more details shortly. Thanks.