aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/POST_search_agg_date_histogram_keyed.txt
blob: 7994b7271dd9dcf0a8c6568b5f1db8f83debe3c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
POST /sales/_search?size=0
{
  "aggs": {
    "sales_over_time": {
      "date_histogram": {
        "field": "date",
        "calendar_interval": "1M",
        "format": "yyyy-MM-dd",
        "keyed": true
      }
    }
  }
}