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();