Created
April 25, 2018 13:20
-
-
Save bevans88/198398b2331a8414a4c132a62dc9a7cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"size": 0, | |
"aggregations": { | |
"firstNested": { | |
"nested": { | |
"path": "firstNested" | |
}, | |
"aggregations": { | |
"firstNestedFilter": { | |
"filter": { | |
"match_all": {} | |
}, | |
"aggregations": { | |
"secondNested": { | |
"nested": { | |
"path": "firstNested.secondNested" | |
}, | |
"aggregations": { | |
"secondNestedNamesTerms": { | |
"terms": { | |
"field": "firstNested.secondNested.names.keyword" | |
}, | |
"aggregations": { | |
"totalCount": { | |
"sum": { | |
"field": "firstNested.secondNested.count" | |
} | |
}, | |
"totalSize": { | |
"sum": { | |
"field": "firstNested.secondNested.size" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment