August 2019
Intermediate to advanced
560 pages
13h 41m
English
The purpose of this is to find the maximum value of the buckets from the aggregation in the previous stage:
"query":{"match": {"symbol":"ACWF"}}, "aggs":{"monthly_avg_close": {"date_histogram":{"field": "date","interval": "month","format": "yyyy-MM-dd"}, "aggs":{"avg_close_on_month":{"avg":{"field":"close"}}}}, "overall_max_avg_close":{"max_bucket": {"buckets_path":"monthly_avg_close>avg_close_on_month"}}}
"overall_max_avg_close": ...
Read now
Unlock full access