Class CollapseContext

java.lang.Object
org.elasticsearch.search.collapse.CollapseContext

public class CollapseContext extends Object
Context used for field collapsing
  • Constructor Details

  • Method Details

    • 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(org.apache.lucene.search.Sort sort, int topN, org.apache.lucene.search.FieldDoc after)