lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Xu \(Aigine Co\)" <>
Subject About the Sorting of Groups during Grouping by
Date Mon, 11 Feb 2013 14:44:01 GMT
Dear List,


I've made through the demo code for grouping search using
TermFirstPassGroupingCollector and  TermSecondPassGroupingCollector.
However, the sorting of resulted groups is determined by the scores of the
top-one documents in each group. ( Everyone of these documents has the
highest score in its own group, that's why it is on top ). This way of
sorting is also thus described in the grouping documentation. 


My purpose is trying to sort the groups based on some way of aggregation
values of the scores of all the documents in each group, such as their sums
or averages.


There is an 'Enum TopGroups.ScoreMergeMode' in the package with the description as "How the
GroupDocs score (if any) should be merged." Is it exactly introduced for the
purpose above? If yes, how to included it into the grouping code? A demo
code would be perfect.


Btw, I just downloaded the very new Lucene 410 version, so 410v is what I'm
looking at.


Many thanks!



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message