From 8c9948637d20411006a4bfc0d5c1484be6b99be4 Mon Sep 17 00:00:00 2001 From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io> Date: Thu, 2 Jul 2015 13:10:33 +0300 Subject: [PATCH] Add match all query doc. --- docs/Query/MatchAll.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/Query/MatchAll.md diff --git a/docs/Query/MatchAll.md b/docs/Query/MatchAll.md new file mode 100644 index 0000000..b07cfae --- /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 -- GitLab