- All Known Implementing Classes:
public interface Terms extends MultiBucketsAggregation
terms aggregation. Defines multiple bucket, each associated with a unique term for a specific field.
All documents in a bucket has the bucket's term in that field.
Nested Class SummaryModifier and TypeInterfaceDescription
static interfaceA bucket that is associated with a single term
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
Method SummaryModifier and TypeMethodDescriptionGet the bucket for the given term, or null if there is no such bucket.Return the sorted list of the buckets in this terms aggregation.Get an upper bound of the error on document counts in this aggregation.
longReturn the sum of the document counts of all buckets that did not make it to the top buckets.
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
getBucketsReturn the sorted list of the buckets in this terms aggregation.
getBucketByKeyGet the bucket for the given term, or null if there is no such bucket.
getDocCountErrorLong getDocCountError()Get an upper bound of the error on document counts in this aggregation.
getSumOfOtherDocCountslong getSumOfOtherDocCounts()Return the sum of the document counts of all buckets that did not make it to the top buckets.