August 2019
Intermediate to advanced
560 pages
13h 41m
English
This is similar to the date histogram aggregation. The difference is using a given number of intervals (buckets) instead of the time interval:
"query": { "match": { "symbol": "ACWF"}},"aggs":{"monthly_trading_days": {"auto_date_histogram":{"field": "date","buckets": "4","format": "yyyy-MM-dd"}}}
Read now
Unlock full access