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

Add match all filter doc.

parent 602e003e
No related branches found
No related tags found
No related merge requests found
# Match All Filter
> More info about match all filter is in the [official elasticsearch docs][1]
A filter that matches on all documents.
## Simple example
```JSON
{
"filter" : {
"match_all" : { }
}
}
```
And now the query via DSL:
```php
$matchAllFilter = new MatchAllFilter();
$search = new Search();
$search->addFilter($matchAllFilter);
$queryArray = $search->toArray();
```
[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-indices-filter.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