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