java.lang.Object
org.elasticsearch.search.collapse.CollapseContext
Context used for field collapsing
-
Constructor Summary
ConstructorsConstructorDescriptionCollapseContext(String fieldName, MappedFieldType fieldType, List<InnerHitBuilder> innerHits) -
Method Summary
Modifier and TypeMethodDescriptioncreateTopDocs(org.apache.lucene.search.Sort sort, int topN, org.apache.lucene.search.FieldDoc after) The requested field name to collapse on.The field type used for collapsingThe inner hit options to expand the collapsed results
-
Constructor Details
-
CollapseContext
public CollapseContext(String fieldName, MappedFieldType fieldType, List<InnerHitBuilder> innerHits)
-
-
Method Details
-
getFieldName
The requested field name to collapse on. -
getFieldType
The field type used for collapsing -
getInnerHit
The inner hit options to expand the collapsed results -
createTopDocs
public SinglePassGroupingCollector<?> createTopDocs(org.apache.lucene.search.Sort sort, int topN, org.apache.lucene.search.FieldDoc after)
-