1 2 3 4 5 6 7 8 9 10 11
POST /sales/_search?size=0 { "aggs": { "sales_over_time": { "date_histogram": { "field": "date", "fixed_interval": "30d" } } } }