Class AbstractSecondPassGroupingCollector<GROUP_VALUE_TYPE>

  • Direct Known Subclasses:
    TermSecondPassGroupingCollector

    public abstract class AbstractSecondPassGroupingCollector<GROUP_VALUE_TYPE>
    extends Collector
    SecondPassGroupingCollector is the second of two passes necessary to collect grouped docs. This pass gathers the top N documents per top group computed from the first pass. Concrete subclasses define what a group is and how it is internally collected.

    See org.apache.lucene.search.grouping for more details including a full code example.

    WARNING: This API is experimental and might change in incompatible ways in the next release.