From 07a9506f7785d339b97149a404f64d42856ac8dd Mon Sep 17 00:00:00 2001 From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io> Date: Wed, 8 Jul 2015 09:20:30 +0300 Subject: [PATCH] Add match all filter doc. --- docs/Filter/MatchAll.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/Filter/MatchAll.md diff --git a/docs/Filter/MatchAll.md b/docs/Filter/MatchAll.md new file mode 100644 index 0000000..3d8d9ed --- /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 -- GitLab