[DOCS] Adjusted geo_distance aggregation example

unit is not returned in the response, but we have key and an implicit from starting at 0 for the first bucket
This commit is contained in:
olivier bourgain 2015-02-21 09:43:03 +01:00 committed by Luca Cavanna
parent eaeddc6bd4
commit fb7cd2ea9a

View File

@ -31,18 +31,19 @@ Response:
"rings" : {
"buckets": [
{
"unit": "km",
"key": "*-100.0",
"from": 0,
"to": 100.0,
"doc_count": 3
},
{
"unit": "km",
"key": "100.0-300.0",
"from": 100.0,
"to": 300.0,
"doc_count": 1
},
{
"unit": "km",
"key": "300.0-*",
"from": 300.0,
"doc_count": 7
}