summaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_date_histogram_offset.txt
blob: 0a613de33e4120348a28d1b61324fd6e6dae160d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
GET /my-index-000001/_search?size=0
{
  "aggs": {
    "by_day": {
      "date_histogram": {
        "field":     "date",
        "calendar_interval":  "day",
        "offset":    "+6h"
      }
    }
  }
}