From f0a5ea492d5841a5ed5af872ded0ab688f11c28d Mon Sep 17 00:00:00 2001
From: Mantas Simkus <mantas.simkus@ongr.io>
Date: Thu, 6 Aug 2015 11:51:01 +0300
Subject: [PATCH] edited AvgAggregation doc

---
 docs/Aggregation/Avg.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/Aggregation/Avg.md b/docs/Aggregation/Avg.md
index c72b519..1a9e221 100644
--- a/docs/Aggregation/Avg.md
+++ b/docs/Aggregation/Avg.md
@@ -10,7 +10,7 @@ A single-value metrics aggregation that computes the average of numeric values t
 ```JSON
 {
     "aggregations": {
-        "agg_avg_grade": {
+        "avg_grade": {
             "avg": {
                 "field": "grade"
             }
@@ -31,4 +31,4 @@ $search->addAggregation($avgAggregation);
 $queryArray = $search->toArray();
 ```
 
-[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-avg-aggregation.html
\ No newline at end of file
+[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-avg-aggregation.html
-- 
GitLab