diff --git a/docs/Filter/MatchAll.md b/docs/Filter/MatchAll.md new file mode 100644 index 0000000000000000000000000000000000000000..3d8d9ed61a78a765f033bf7f6a485f67347a271e --- /dev/null +++ b/docs/Filter/MatchAll.md @@ -0,0 +1,28 @@ +# 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