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

Add match all query doc.

parent 09680a88
No related branches found
No related tags found
No related merge requests found
# Match All Query
> More info about match all query is in the [official elasticsearch docs][1]
A query that matches all documents
## Simple example
```JSON
{
"match_all" : { }
}
```
In DSL:
```php
$matchAllQuery = new MatchAllQuery();
$search = new Search();
$search->addQuery($matchAllQuery);
$queryArray = $search->toArray();
```
[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.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