Class CollapseContext
java.lang.Object
org.elasticsearch.search.collapse.CollapseContext
public class CollapseContext
extends java.lang.Object
Context used for field collapsing
-
Constructor Summary
Constructors Constructor Description CollapseContext(java.lang.String fieldName, MappedFieldType fieldType, java.util.List<InnerHitBuilder> innerHits) -
Method Summary
Modifier and Type Method Description CollapsingTopDocsCollector<?>createTopDocs(org.apache.lucene.search.Sort sort, int topN)java.lang.StringgetFieldName()The requested field name to collapse on.MappedFieldTypegetFieldType()The field type used for collapsingjava.util.List<InnerHitBuilder>getInnerHit()The inner hit options to expand the collapsed results
-
Constructor Details
-
CollapseContext
public CollapseContext(java.lang.String fieldName, MappedFieldType fieldType, java.util.List<InnerHitBuilder> innerHits)
-
-
Method Details
-
getFieldName
public java.lang.String 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
-