Skip to content
Snippets Groups Projects
Commit f0a5ea49 authored by Mantas Simkus's avatar Mantas Simkus
Browse files

edited AvgAggregation doc

parent ac648cc1
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment