Link Search Menu Expand Document Documentation Menu

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? .