Class CollapseContext
- java.lang.Object
-
- org.elasticsearch.search.collapse.CollapseContext
-
public class CollapseContext extends Object
Context used for field collapsing
-
-
Constructor Summary
Constructors Constructor Description CollapseContext(String fieldName, MappedFieldType fieldType, List<InnerHitBuilder> innerHits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollapsingTopDocsCollector<?>createTopDocs(Sort sort, int topN)StringgetFieldName()The requested field name to collapse on.MappedFieldTypegetFieldType()The field type used for collapsingList<InnerHitBuilder>getInnerHit()The inner hit options to expand the collapsed results
-
-
-
Constructor Detail
-
CollapseContext
public CollapseContext(String fieldName, MappedFieldType fieldType, List<InnerHitBuilder> innerHits)
-
-
Method Detail
-
getFieldName
public String getFieldName()
The requested field name to collapse on.
-
getFieldType
public MappedFieldType getFieldType()
The field type used for collapsing
-
getInnerHit
public List<InnerHitBuilder> getInnerHit()
The inner hit options to expand the collapsed results
-
createTopDocs
public CollapsingTopDocsCollector<?> createTopDocs(Sort sort, int topN)
-
-