Link Search Menu Expand Document Documentation Menu

This version of the OpenSearch documentation is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

Match all queries

The match_all query returns all documents. This query can be useful in testing large document sets if you need to return the entire set.

GET _search
{
  "query": {
    "match_all": {}
  }
}

The match_all query has a match_none counterpart, which is rarely useful:

GET _search
{
  "query": {
    "match_none": {}
  }
}

350 characters left

Have a question? .

Want to contribute? or .