T - the type of the group valuepublic class TopGroupsCollector<T> extends SecondPassGroupingCollector<T>
TopGroups objectgroupReducer, groups, groupSelector, totalGroupedHitCount, totalHitCount| Constructor and Description |
|---|
TopGroupsCollector(GroupSelector<T> groupSelector,
Collection<SearchGroup<T>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getMaxScores)
Create a new TopGroupsCollector
|
| Modifier and Type | Method and Description |
|---|---|
TopGroups<T> |
getTopGroups(int withinGroupOffset)
Get the TopGroups recorded by this collector
|
collect, doSetNextReader, getGroupSelector, scoreMode, setScorergetLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompetitiveIteratorpublic TopGroupsCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getMaxScores)
groupSelector - the group selector used to define groupsgroups - the groups to collect TopDocs forgroupSort - the order in which groups are returnedwithinGroupSort - the order in which documents are sorted in each groupmaxDocsPerGroup - the maximum number of docs to collect for each groupgetMaxScores - if true, record the maximum score for each groupCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.