java.lang.Object
org.apache.lucene.search.TopDocs
org.apache.lucene.search.TopFieldDocs
org.elasticsearch.lucene.grouping.TopFieldGroups
public final class TopFieldGroups
extends org.apache.lucene.search.TopFieldDocs
Represents hits returned by
SinglePassGroupingCollector.getTopGroups(int)
}.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The field used for groupingfinal Object[]
The group value for each top docFields inherited from class org.apache.lucene.search.TopFieldDocs
fields
Fields inherited from class org.apache.lucene.search.TopDocs
scoreDocs, totalHits
-
Constructor Summary
ConstructorsConstructorDescriptionTopFieldGroups
(String field, org.apache.lucene.search.TotalHits totalHits, org.apache.lucene.search.ScoreDoc[] scoreDocs, org.apache.lucene.search.SortField[] sortFields, Object[] values) -
Method Summary
Modifier and TypeMethodDescriptionstatic TopFieldGroups
merge
(org.apache.lucene.search.Sort sort, int start, int size, TopFieldGroups[] shardHits, boolean setShardIndex) Returns a newTopFieldGroups
, containing topN results across the providedTopFieldGroups
, sorting by the specifiedSort
.Methods inherited from class org.apache.lucene.search.TopDocs
merge, merge, merge, merge, merge, merge
-
Field Details
-
field
The field used for grouping -
groupValues
The group value for each top doc
-
-
Constructor Details
-
TopFieldGroups
-
-
Method Details
-
merge
public static TopFieldGroups merge(org.apache.lucene.search.Sort sort, int start, int size, TopFieldGroups[] shardHits, boolean setShardIndex) Returns a newTopFieldGroups
, containing topN results across the providedTopFieldGroups
, sorting by the specifiedSort
.
-