[docs] fixed errors in aggs docs

- error in nested aggs example
- error in terms aggs example
This commit is contained in:
uboness 2014-02-13 20:33:35 +01:00
parent 28c6dc3e19
commit d335630e57
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ The following aggregations will return the minimum price products can be purchas
"path" : "resellers"
},
"aggs" : {
"min_price" : { "min" : { "field" : "nested.value" } }
"min_price" : { "min" : { "field" : "resellers.price" } }
}
}
}

View File

@ -134,7 +134,7 @@ Ordering the buckets by multi value metrics sub-aggregation (identified by the a
"genders" : {
"terms" : {
"field" : "gender",
"order" : { "stats.avg" : "desc" }
"order" : { "height_stats.avg" : "desc" }
},
"aggs" : {
"height_stats" : { "stats" : { "field" : "height" } }