Hello,

I have a problem using grouped queries and the 'group.ngroups' parameter.
When I run the following request

<myURL>/select?q=<myQuery>&group=true&group.field=personId&group.ngroups=true&wt=xml

the response looks like this:

<lst name="grouped">
  <lst name="personId">
    <int name="matches">11</int>
    <int name="ngroups">6</int>
    <arr name="groups">
      <lst>
        <str name="groupValue">106.12345</str>
        <result name="doclist" numFound="3" start="0">...</result>
      </lst>
      <lst>
        <str name="groupValue">106.12312</str>
        <result name="doclist" numFound="3" start="0">...</result>
      </lst>
      <lst>
        <str name="groupValue">101.12313</str>
        <result name="doclist" numFound="2" start="0" maxScore=
"0.08318384">...</result>
      </lst>
      <lst>
        <str name="groupValue">101.12312</str>
        <result name="doclist" numFound="3" start="0" maxScore=
"0.08318384">...</result>
      </lst>
    </arr>
  </lst>
</lst>

I expected, that the ngroups results in 4, because it is the total count 
of all groups, that match my query.

The result of 'matches' is right, and the 11 docs are distributed on the 4 
groups of my response, but I have no idea, 
what ngroups is counting in this case.
Can anybody explain to me, what's the meaning of ngroups is?

regards
Norman Lenzner

Reply via email to