summaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_composite_early.txt
blob: c0ab7cd776518b3f4301c6be0a971507dc929efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
GET /some-index/_search
{
  "size": 0,
  "track_total_hits": false,
  "aggs": {
    "my_buckets": {
      "composite": {
        "sources": [
          { "user_name": { "terms": { "field": "user_name" } } },
          { "date": { "date_histogram": { "field": "timestamp", "calendar_interval": "1d", "order": "desc" } } }
        ]
      }
    }
  }
}