Skip to content
Snippets Groups Projects
Commit a75f0fa5 authored by Aivaras Gotovskis's avatar Aivaras Gotovskis
Browse files

Remove leftover text in avg aggregation doc.

parent bab8aa24
No related branches found
No related tags found
No related merge requests found
......@@ -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
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