summaryrefslogtreecommitdiffstats
path: root/tests/files/GET_search_agg_nested.txt
blob: 8e5d1c1941454d3da09fe1b2d79bf9701bd846d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GET /products/_search
{
  "query": {
    "match": { "name": "led tv" }
  },
  "aggs": {
    "resellers": {
      "nested": {
        "path": "resellers"
      },
      "aggs": {
        "min_price": { "min": { "field": "resellers.price" } }
      }
    }
  }
}