Class TopFieldGroups

java.lang.Object
org.apache.lucene.search.TopDocs
org.apache.lucene.search.TopFieldDocs
org.elasticsearch.lucene.grouping.TopFieldGroups

public final class TopFieldGroups extends org.apache.lucene.search.TopFieldDocs
Represents hits returned by SinglePassGroupingCollector.getTopGroups(int)}.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The field used for grouping
    final Object[]
    The group value for each top doc

    Fields inherited from class org.apache.lucene.search.TopFieldDocs

    fields

    Fields inherited from class org.apache.lucene.search.TopDocs

    scoreDocs, totalHits
  • Constructor Summary

    Constructors
    Constructor
    Description
    TopFieldGroups(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 Type
    Method
    Description
    merge(org.apache.lucene.search.Sort sort, int start, int size, TopFieldGroups[] shardHits, boolean setShardIndex)
    Returns a new TopFieldGroups, containing topN results across the provided TopFieldGroups, sorting by the specified Sort.

    Methods inherited from class org.apache.lucene.search.TopDocs

    merge, merge, merge, merge, merge, merge

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • field

      public final String field
      The field used for grouping
    • groupValues

      public final Object[] groupValues
      The group value for each top doc
  • Constructor Details

    • TopFieldGroups

      public TopFieldGroups(String field, org.apache.lucene.search.TotalHits totalHits, org.apache.lucene.search.ScoreDoc[] scoreDocs, org.apache.lucene.search.SortField[] sortFields, Object[] values)
  • Method Details