aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/POST_search_agg_date_histogram_fixed_interval.txt
blob: e98ad7080a3ff13abec8f1a2a3b340071ca15ccc (plain)
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"
      }
    }
  }
}