Interface SignificantTerms.Bucket

All Superinterfaces:
HasAggregations, MultiBucketsAggregation.Bucket, ToXContent
All Known Implementing Classes:
InternalSignificantTerms.Bucket, ParsedSignificantLongTerms.ParsedBucket, ParsedSignificantStringTerms.ParsedBucket, ParsedSignificantTerms.ParsedBucket, SignificantLongTerms.Bucket, SignificantStringTerms.Bucket, UnmappedSignificantTerms.Bucket
Enclosing interface:
SignificantTerms

public static interface SignificantTerms.Bucket extends MultiBucketsAggregation.Bucket
  • Method Details

    • getSignificanceScore

      double getSignificanceScore()
      Returns:
      The significant score for the subset
    • getSubsetDf

      long getSubsetDf()
      Returns:
      The number of docs in the subset containing a particular term. This number is equal to the document count of the bucket.
    • getSubsetSize

      long getSubsetSize()
      Returns:
      The numbers of docs in the subset (also known as "foreground set"). This number is equal to the document count of the containing aggregation.
    • getSupersetDf

      long getSupersetDf()
      Returns:
      The number of docs in the superset containing a particular term (also known as the "background count" of the bucket)
    • getSupersetSize

      long getSupersetSize()
      Returns:
      The numbers of docs in the superset (ordinarily the background count of the containing aggregation).
    • getKeyAsNumber

      Number getKeyAsNumber()
      Returns:
      The key, expressed as a number