Re: Solr4 BETA group.ngroups count

2012-08-27 Thread Roman SlavĂ­k

Hi, did you find where is problem?

Dne 23.8.2012 16:40, lenz...@gfi.ihk.de napsal(a):

Hello,

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

myURL/select?q=myQuerygroup=truegroup.field=personIdgroup.ngroups=truewt=xml

the response looks like this:

lst name=grouped
   lst name=personId
 int name=matches11/int
 int name=ngroups6/int
 arr name=groups
   lst
 str name=groupValue106.12345/str
 result name=doclist numFound=3 start=0.../result
   /lst
   lst
 str name=groupValue106.12312/str
 result name=doclist numFound=3 start=0.../result
   /lst
   lst
 str name=groupValue101.12313/str
 result name=doclist numFound=2 start=0 maxScore=
0.08318384.../result
   /lst
   lst
 str name=groupValue101.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




Solr4 BETA group.ngroups count

2012-08-23 Thread Lenzner
Hello,

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

myURL/select?q=myQuerygroup=truegroup.field=personIdgroup.ngroups=truewt=xml

the response looks like this:

lst name=grouped
  lst name=personId
int name=matches11/int
int name=ngroups6/int
arr name=groups
  lst
str name=groupValue106.12345/str
result name=doclist numFound=3 start=0.../result
  /lst
  lst
str name=groupValue106.12312/str
result name=doclist numFound=3 start=0.../result
  /lst
  lst
str name=groupValue101.12313/str
result name=doclist numFound=2 start=0 maxScore=
0.08318384.../result
  /lst
  lst
str name=groupValue101.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