aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/POST_search_agg_date_histogram.txt
blob: 731af13cea3c2885b28aaf2497f1084975f93ca5 (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",
        "calendar_interval": "month"
      }
    }
  }
}