October 2019
Beginner
186 pages
5h 39m
English
This multi-bucket aggregation applies to numeric values from documents. The aggregation dynamically builds a fixed-size interval of buckets over the values. The interval must be defined as a positive decimal, and the offset is also a decimal: [0, interval).
A minimum document count will fill the gaps in a histogram with empty buckets. It can be changed using the min_doc_count setting. The buckets are returned in ascending order. They start at 0 and continue in terms of intervals. The missing parameter neglects the documents that do not contain a value. To include these documents, set the parameter to a value, "missing":0.
Read now
Unlock full access