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: [email protected] For additional commands, e-mail: [email protected]
