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.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Terms
A bucket that is associated with a single term
|
static class |
Terms
Determines the order by which the term buckets will be sorted
|
static class |
Terms
|
| Modifier and Type | Method and Description |
|---|---|
Terms |
getBucketByKey(String
Get the bucket for the given term, or null if there is no such bucket.
|
List |
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.
|
getNameList<Terms .Bucket > getBuckets()
getBuckets in interface
MultiBucketsAggregation
Terms.Bucket getBucketByKey(String term)
getBucketByKey in interface
MultiBucketsAggregation
term - The key of the requested bucket.
long getDocCountError()
long getSumOfOtherDocCounts()