Example usage for Java org.apache.lucene.search.grouping GroupingSearch fields, constructors, methods, implement or subclass
The text is from its open source code.
GroupingSearch(String groupField) Constructs a GroupingSearch instance that groups documents by index terms using DocValues. | |
GroupingSearch(Query groupEndDocs) Constructor for grouping documents by doc block. |
TopGroups | search(IndexSearcher searcher, Query query, int groupOffset, int groupLimit) Executes a grouped search. |
GroupingSearch | setAllGroups(boolean allGroups) Whether to also compute all groups matching the query. |
GroupingSearch | setCachingInMB(double maxCacheRAMMB, boolean cacheScores) Enables caching for the second pass search. |
GroupingSearch | setGroupDocsLimit(int groupDocsLimit) Specifies the number of documents to return inside a group from the specified groupDocsOffset. |
GroupingSearch | setGroupSort(Sort groupSort) Specifies how groups are sorted. |
GroupingSearch | setSortWithinGroup(Sort sortWithinGroup) Specified how documents inside a group are sorted. |