Class FirstPassGroupingCollector<T>

    • Constructor Detail

      • FirstPassGroupingCollector

        public FirstPassGroupingCollector​(GroupSelector<T> groupSelector,
                                          Sort groupSort,
                                          int topNGroups)
        Create the first pass collector.
        Parameters:
        groupSelector - a GroupSelector used to defined groups
        groupSort - The Sort used to sort the groups. The top sorted document within each group according to groupSort, determines how that group sorts against other groups. This must be non-null, ie, if you want to groupSort by relevance use Sort.RELEVANCE.
        topNGroups - How many top groups to keep.