From a75f0fa5e9a0633a57a2543688bd769b42fa55ac Mon Sep 17 00:00:00 2001 From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io> Date: Wed, 8 Jul 2015 13:56:33 +0300 Subject: [PATCH] Remove leftover text in avg aggregation doc. --- docs/Aggregation/Avg.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/docs/Aggregation/Avg.md b/docs/Aggregation/Avg.md index 6aa57f0..c72b519 100644 --- a/docs/Aggregation/Avg.md +++ b/docs/Aggregation/Avg.md @@ -31,26 +31,4 @@ $search->addAggregation($avgAggregation); $queryArray = $search->toArray(); ``` -There is also an exception due adding queries to the search. If you add only one query without type it will form simple query. e.g. lets try to create match all query. - -```php -$search = new Search(); -$matchAllQuery = new MatchAllQuery(); -$search->addQuery($matchAllQuery); -$queryArray = $search->toArray(); -``` - -You will get this query: -```JSON -{ - "query": { - "match_all": {} - } -} -``` - -> More info about `Search` look in the [How to search](../HowTo/HowToSearch.md) chapter. - - - [1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-avg-aggregation.html \ No newline at end of file -- GitLab