You're viewing version 2.15 of the OpenSearch documentation. This version 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": {}
}
}