August 2019
Intermediate to advanced
560 pages
13h 41m
English
The purpose of this is to calculate the derivate (first order, second order) of each bucket from the aggregation in the previous stage:
"query":{"match": {"symbol":"ACWF"}},"aggs":{"monthly_change": {"date_histogram":{"field": "date","interval": "month","format": "yyyy-MM-dd"},"aggs":{"change_on_month":{"sum":{"field":"change"}},"first_order_derivative":{"derivative": {"buckets_path": "change_on_month"}},"second_order_derivative": {"derivative": {"buckets_path": "first_order_derivative"}}}}}
Read now
Unlock full access