Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Match All Filter

More info about match all filter is in the official elasticsearch docs

A filter that matches on all documents.

Simple example

{
    "filter" : {
        "match_all" : { }
    }
}

And now the query via DSL:

$matchAllFilter = new MatchAllFilter();

$search = new Search();
$search->addFilter($matchAllFilter);

$queryArray = $search->toArray();