Let me copy paste an answer I wrote yesterday :)
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 number of groups, you need to shard along
your grouping field.
If you
Hello,
Is there any way to know how many items will I have after grouping results?
I have the total matches without groups and for each group the quantity of
items on it, but I cannot find the number of groups I got.
Regards
--
Bruno René Santos
Lisboa - Portugal