lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn v Groningen <martijn.v.gronin...@gmail.com>
Subject Re: Stats per group with StatsComponent?
Date Wed, 30 Nov 2011 14:51:32 GMT
Looks fine!

Martijn

On 30 November 2011 15:25, Morten Lied Johansen <mortenjo@ifi.uio.no> wrote:
> On 30. nov. 2011 14:58, Martijn v Groningen wrote:
>>
>>
>
>> With the StatsComponent this isn't possible at the moment. The
>> StatsComponent will give you the min / max of field for the whole
>> query result.
>> If you want the min / max value per group you'll need to do some
>> coding. The grouping logic is executed inside Lucene collectors
>> located in the grouping module. You'll need to create a new second
>> pass collector that computes the min / max for the top N groups. This
>> collector then needs to be wired up in Solr. The
>> AbstractSecondPassGroupingCollector is something you can take a look
>> at. It collects the top documents for the top N groups.
>
>
> Thank you for your reply. We'll have a look at this and see if we can get
> something going this week.
>
>
>> You don't need to have a patch to open an issue. Just open an issue
>> with a good description and maybe some implementation details.
>
>
> I have created an issue, SOLR-2931. Let me know if I should add some more
> details to it. We will update it and follow any discussions as we work.
>
>
> --
> Morten
> We all live in a yellow subroutine.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>



-- 
Met vriendelijke groet,

Martijn van Groningen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message