Nope!
if u r doing grouping then "matches" is always the total no. of results and
"ngroups" is the number of groups. Every groups can have some docs
belonging to it which can be anything according to provided parameter
"group.limit". If u get the sum of all the docs of each group, then it's
equivalent to "matches".
Ok.....u can do one experiment.....execute a simple query in solr which
returns very few results.
1)execute the query *without grouping* in browser and check the xml/json
response...it will show u the total no. of result matches as a response in
"numFound"...e,g.
<result name="response" numFound="20" start="0">
lets say it.....
*a)* numFound*withoutgrouping=20*
2) Now execute the query same *with grouping *parameters* *and* *look at
the xml/json response in browser. it will show u the results like this....
/**********
<lst name="groupid">
<int name="matches">20</int>
<int name="ngroups">12</int>
<arr name="groups">
<lst>
<str name="groupValue">4362</str>
<result name="doclist" numFound="1" start="0">...</result>
</lst>
<lst>
<str name="groupValue">3170</str>
<result name="doclist" numFound="3" start="0">...</result>
</lst>
**********/

b)matcheswithgroups=20

Now do the sum of docs of every group...
<result name="doclist" numFound="1" start="0">...</result>
<result name="doclist" numFound="3" start="0">...</result>
sum of  numFound="1",  numFound="3" .....
lets say
*
*
*c) sumofgroups*=1+3+.......u will find a==b==c at last.....
do that experiment and reply back......

after doing sum compare the a), b), c)

On Fri, Feb 3, 2012 at 10:32 AM, tamanjit.bin...@yahoo.co.in <
tamanjit.bin...@yahoo.co.in> wrote:

> Ummm.. I think there is some confusion here.
>
> As per my understanding, matches is the total no of docs which the original
> query/filter query returned. On these docs grouping is done. So matches may
> not be actually equal to total no. of returned in your result, post
> grouping. Its just a subset of the matches, divided into groups.
>
> Is my understanding correct?
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3712195.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Thanks & Regards
Preetesh Dubey

Reply via email to