diff --git a/docs/Aggregation/Filter.md b/docs/Aggregation/Filter.md index 9a7a4d21b62f37a1aefa1f3f62817d5dc0fd245f..96a2dbb86ee48fd1d027221c8268d7e3d6e0082a 100644 --- a/docs/Aggregation/Filter.md +++ b/docs/Aggregation/Filter.md @@ -11,10 +11,10 @@ context to a specific set of documents. ```JSON { "aggregations" : { - "agg_red_products" : { + "grades_stats" : { "filter" : { "term": { "color": "red" } }, - "aggs" : { - "agg_avg_price" : { "avg" : { "field" : "price" } } + "aggregations" : { + "avg_price" : { "avg" : { "field" : "price" } } } } }