Class TopGroupsCollectorManager<T>
java.lang.Object
org.apache.lucene.search.grouping.TopGroupsCollectorManager<T>
- All Implemented Interfaces:
CollectorManager<TopGroupsCollector<T>,TopGroups<T>>
public class TopGroupsCollectorManager<T>
extends Object
implements CollectorManager<TopGroupsCollector<T>,TopGroups<T>>
A CollectorManager implementation for TopGroupsCollector.
-
Constructor Summary
ConstructorsConstructorDescriptionTopGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory, Collection<SearchGroup<T>> searchGroups, Sort groupSort, Sort sortWithinGroup, int withinGroupOffset, int maxDocsPerGroup, boolean getMaxScores) Creates a new TopGroupsCollectorManager.TopGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory, Collection<SearchGroup<T>> searchGroups, Sort groupSort, Sort sortWithinGroup, int withinGroupOffset, int maxDocsPerGroup, boolean getMaxScores, TopGroups.ScoreMergeMode scoreMergeMode) Creates a new TopGroupsCollectorManager. -
Method Summary
-
Constructor Details
-
TopGroupsCollectorManager
public TopGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory, Collection<SearchGroup<T>> searchGroups, Sort groupSort, Sort sortWithinGroup, int withinGroupOffset, int maxDocsPerGroup, boolean getMaxScores) Creates a new TopGroupsCollectorManager.- Parameters:
groupSelectorFactory- factory to create group selectors for each collectorsearchGroups- the search groups from the first passgroupSort- the sort to use for groupssortWithinGroup- the sort to use within each groupwithinGroupOffset- the offset within each group to start collecting documentsmaxDocsPerGroup- the maximum number of documents per groupgetMaxScores- whether to compute max scores
-
TopGroupsCollectorManager
public TopGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory, Collection<SearchGroup<T>> searchGroups, Sort groupSort, Sort sortWithinGroup, int withinGroupOffset, int maxDocsPerGroup, boolean getMaxScores, TopGroups.ScoreMergeMode scoreMergeMode) Creates a new TopGroupsCollectorManager.- Parameters:
groupSelectorFactory- factory to create group selectors for each collectorsearchGroups- the search groups from the first passgroupSort- the sort to use for groupssortWithinGroup- the sort to use within each groupwithinGroupOffset- the offset within each group to start collecting documentsmaxDocsPerGroup- the maximum number of documents per groupgetMaxScores- whether to compute max scoresscoreMergeMode- the mode for merging scores across shards
-
-
Method Details
-
newCollector
- Specified by:
newCollectorin interfaceCollectorManager<TopGroupsCollector<T>,TopGroups<T>> - Throws:
IOException
-
reduce
- Specified by:
reducein interfaceCollectorManager<TopGroupsCollector<T>,TopGroups<T>> - Throws:
IOException
-