August 2019
Intermediate to advanced
560 pages
13h 41m
English
The purpose of the histogram aggregation is to group values into ranges with a fixed interval and count the documents. The starting range is 0 or a given offset. The range distance is specified by the interval value. The rounding formula is bucket_key = Math.floor((value - offset) / interval) * interval + offset. The "extended_bounds" : {"min" : lv,"max" : uv} parameter is used to specify the lower bound and upper bound of the buckets:
"query": { "match": { "symbol": "ACWF"}},"aggs": { "acwf_histogram": {"histogram": {"field": "open","interval": 1,"extended_bounds": { "min":24, ...Read now
Unlock full access