aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_composite_terms.txt
blob: 403fc2cd52c4b1e32d735d3144e5a9f62ef3c929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
GET /some-index/_search
{
  "size": 0,
  "aggs": {
    "my_buckets": {
      "composite": {
        "sources": [
          { "product": { "terms": { "field": "product" } } }
        ]
      }
    }
  }
}