Created
August 24, 2018 12:52
-
-
Save marcellustavares/d2bf7aae2a1a5be4f9a7d2b2511f4e6f to your computer and use it in GitHub Desktop.
Script Aggregation Response
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
{ | |
"total": 6, | |
"queryTime": 4, | |
"_aggregations": { | |
"cities": { | |
"buckets": [ | |
{ | |
"aggregations": { | |
"avg_fahrenheit": 62.666666666666664, | |
"avg_celsius": 17.037037037037035 | |
}, | |
"count": 3, | |
"name": "Miami" | |
}, | |
{ | |
"aggregations": { | |
"avg_fahrenheit": 47.5, | |
"avg_celsius": 8.61111111111111 | |
}, | |
"count": 2, | |
"name": "Los Angeles" | |
}, | |
{ | |
"aggregations": { | |
"avg_fahrenheit": 50, | |
"avg_celsius": 10 | |
}, | |
"count": 1, | |
"name": "New York" | |
} | |
], | |
"name": "cities" | |
} | |
}, | |
"aggregations": { | |
"cities": { | |
"New York": 1, | |
"Los Angeles": 2, | |
"Miami": 3 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment