I am using Result Grouping into the SOLR. How can i get the total number of results? By result I mean the count of grouped data.
For example:

I searched with 2 email addresses (“Kartikeshwar@sterlinghofman.com” OR “milojevics@mail.com”). I got 2 results in the result set. There is numFound attribute in the result node which shows the email address “milojevics@mail.com” matched 16 times and the email address “Kartikeshwar@sterlinghofman.com” matched 28 times. There is a matches attribute which shows the total number of matches (16 + 28 = 44). But i want to know the total number of result set which is 2 (1 for “Kartikeshwar@sterlinghofman.com” + 1 for “milojevics@mail.com”). How can i get that?
For the number of groups use the
groups.ngroupsrequest parameter which will give you the group count.Documentation :-