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

Match All Query

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

A query that matches all documents

Simple example

{
    "match_all" : { }
}

In DSL:

$matchAllQuery = new MatchAllQuery();

$search = new Search();
$search->addQuery($matchAllQuery);

$queryArray = $search->toArray();