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 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 collector
      searchGroups - the search groups from the first pass
      groupSort - the sort to use for groups
      sortWithinGroup - the sort to use within each group
      withinGroupOffset - the offset within each group to start collecting documents
      maxDocsPerGroup - the maximum number of documents per group
      getMaxScores - 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 collector
      searchGroups - the search groups from the first pass
      groupSort - the sort to use for groups
      sortWithinGroup - the sort to use within each group
      withinGroupOffset - the offset within each group to start collecting documents
      maxDocsPerGroup - the maximum number of documents per group
      getMaxScores - whether to compute max scores
      scoreMergeMode - the mode for merging scores across shards
  • Method Details