summaryrefslogtreecommitdiffstats
path: root/tests/files/GET_collapse_nested.txt
blob: a31c8e4c5787f49757c62faa932a7f6cf09243d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GET /my-index-000001/_search
{
  "query": {
    "match": {
      "message": "GET /search"
    }
  },
  "collapse": {
    "field": "geo.country_name",
    "inner_hits": {
      "name": "by_location",
      "collapse": { "field": "user.id" },
      "size": 3
    }
  }
}