Class CollapseTopFieldDocs
java.lang.Object
org.apache.lucene.search.TopDocs
org.apache.lucene.search.TopFieldDocs
org.apache.lucene.search.grouping.CollapseTopFieldDocs
public final class CollapseTopFieldDocs
extends org.apache.lucene.search.TopFieldDocs
Represents hits returned by
CollapsingTopDocsCollector.getTopDocs()
.-
Field Summary
Modifier and TypeFieldDescriptionObject[]
The collapse value for each top docThe field used for collapsingFields inherited from class org.apache.lucene.search.TopFieldDocs
fields
Fields inherited from class org.apache.lucene.search.TopDocs
scoreDocs, totalHits
-
Constructor Summary
ConstructorDescriptionCollapseTopFieldDocs(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 CollapseTopFieldDocs
merge(org.apache.lucene.search.Sort sort, int start, int size, CollapseTopFieldDocs[] shardHits, boolean setShardIndex)
Returns a new CollapseTopDocs, containing topN collapsed results across the provided CollapseTopDocs, sorting by score.Methods inherited from class org.apache.lucene.search.TopDocs
merge, merge, merge, merge
-
Field Details
-
field
The field used for collapsing -
collapseValues
The collapse value for each top doc
-
-
Constructor Details
-
CollapseTopFieldDocs
-
-
Method Details
-
merge
public static CollapseTopFieldDocs merge(org.apache.lucene.search.Sort sort, int start, int size, CollapseTopFieldDocs[] shardHits, boolean setShardIndex)Returns a new CollapseTopDocs, containing topN collapsed results across the provided CollapseTopDocs, sorting by score. EachCollapseTopFieldDocs
instance must be sorted.
-