Search code examples
solrgroupingdistributefieldcollapsing

Count distinct groups in distributed grouping in Solr


Is there any way to get the number of distinct groups in a distributed grouping in solr?

The ngroups param returns the summatory of all groups. If a group exists in more than one shard I will have repeated this groups in the ngroups.


Solution

  • Check SOLR-3316 and SOLR-3436.
    May be an existing issue which is fixed.