Re: matches in result grouping

2010-09-25 Thread Yonik Seeley
On Sat, Sep 25, 2010 at 2:07 AM, Koji Sekiguchi  wrote:
> Thanks Yonik for the explanation.
> One more question. I think SearchGroupDocs.matches is unused
> (I think TopDocsCollector.totalHits is used for displaying numFound
> in each group).
> Will it be used in the future for some reasons (if so it should be
> referenced
> for displaying numFound) or can we remove it?

We can remove it - it's easy enough to add back if we never do need it.

-Yonik
http://lucenerevolution.org   Lucene/Solr Conference, Boston Oct 7-8


Re: matches in result grouping

2010-09-24 Thread Koji Sekiguchi



Correct.  The "matches" is the doc count before any grouping (and for
field.query that means before the restriction given by field.query is
applied).  It won't always be the same though - for example we might
implement filter excludes like we do with faceting, etc.

-Yonik
http://lucenerevolution.org   Lucene/Solr Conference, Boston Oct 7-8


Thanks Yonik for the explanation.
One more question. I think SearchGroupDocs.matches is unused
(I think TopDocsCollector.totalHits is used for displaying numFound
in each group).
Will it be used in the future for some reasons (if so it should be referenced
for displaying numFound) or can we remove it?

Thanks,

Koji

--
http://www.rondhuit.com/en/



Re: matches in result grouping

2010-09-23 Thread Yonik Seeley
2010/9/23 Koji Sekiguchi :
>  (10/09/23 18:14), Koji Sekiguchi wrote:
>>  I'm using recent committed field collapsing / result grouping
>> feature in trunk.
>>
>> I'm confusing matches parameter in the result at the second
>> sample output of Wiki:
>>
>> http://wiki.apache.org/solr/FieldCollapsing#Quick_Start
>>
>> I cannot understand why there are two "matches":5 entries
>> in the result. Can anyone explain it?
> Probably multiple GroupCollectors are generated for each group.field,
> group.func and group.query and match can be counted per collector.

Correct.  The "matches" is the doc count before any grouping (and for
field.query that means before the restriction given by field.query is
applied).  It won't always be the same though - for example we might
implement filter excludes like we do with faceting, etc.

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8


Re: matches in result grouping

2010-09-23 Thread Koji Sekiguchi
 (10/09/23 18:14), Koji Sekiguchi wrote:
>  I'm using recent committed field collapsing / result grouping
> feature in trunk.
>
> I'm confusing matches parameter in the result at the second
> sample output of Wiki:
>
> http://wiki.apache.org/solr/FieldCollapsing#Quick_Start
>
> I cannot understand why there are two "matches":5 entries
> in the result. Can anyone explain it?
Probably multiple GroupCollectors are generated for each group.field,
group.func and group.query and match can be counted per collector.

Koji

-- 
http://www.rondhuit.com/en/