Skip to content

Instantly share code, notes, and snippets.

@aburakovskiy
Created July 31, 2017 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aburakovskiy/b6ea9d7170e500ff9b66d6c6dff3dda7 to your computer and use it in GitHub Desktop.
Save aburakovskiy/b6ea9d7170e500ff9b66d6c6dff3dda7 to your computer and use it in GitHub Desktop.
GET person/person/_search?request_cache=false
{
"from":0,
"size":0,
"_source":"*",
"query":{
"bool":{
"must":[
],
"must_not":[
],
"filter":[
{
"exists":{
"field":"currentTitle"
}
}
]
}
},
"aggs":{
"group_by_parent":{
"nested":{
"path":"education"
},
"aggs":{
"group_by":{
"terms":{
"field":"education.school.keyword"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment