Aggregation, MultiBucketsAggregation, ToXContent, ToXContentFragmentDoubleTerms, InternalMappedTerms, InternalTerms, LongTerms, ParsedDoubleTerms, ParsedLongTerms, ParsedStringTerms, ParsedTerms, StringTerms, UnmappedTermspublic 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.| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
Terms.Bucket |
A bucket that is associated with a single term
|
Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPED_KEYS_DELIMITEREMPTY_PARAMS| Modifier and Type | Method | Description |
|---|---|---|
Terms.Bucket |
getBucketByKey(java.lang.String term) |
Get the bucket for the given term, or null if there is no such bucket.
|
java.util.List<? extends Terms.Bucket> |
getBuckets() |
Return the sorted list of the buckets in this terms aggregation.
|
long |
getDocCountError() |
Get an upper bound of the error on document counts in this aggregation.
|
long |
getSumOfOtherDocCounts() |
Return the sum of the document counts of all buckets that did not make
it to the top buckets.
|
getMetaData, getName, getTypetoXContentisFragmentjava.util.List<? extends Terms.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationTerms.Bucket getBucketByKey(java.lang.String term)
long getDocCountError()
long getSumOfOtherDocCounts()