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