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