lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Young, Cody" <>
Subject RE: Grouping ngroups count
Date Tue, 01 May 2012 16:32:36 GMT

When you say 2 slices, do you mean 2 shards? As in, you're doing a distributed query?

If you're doing a distributed query, then for group.ngroups to work you need to ensure that
all documents for a group exist on a single shard.

However, what you're describing sounds an awful lot like this JIRA issue that I entered a
while ago for distributed grouping. I found that the hit count was coming only from the shards
that ended up having results in the documents that were returned. I didn't test group.ngroups
at the time.

If this is a similar issue then you should make a new Jira issue.


-----Original Message-----
From: Francois Perron [] 
Sent: Tuesday, May 01, 2012 6:47 AM
Subject: Grouping ngroups count

Hello all,

  I tried to use grouping with 2 slices with a index of 35K documents.  When I ask top 10
rows, grouped by filed A, it gave me about 16K groups.  But, if I ask for top 20K rows, the
ngroups property is now at 30K.  

Do you know why and of course how to fix it ?


View raw message