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.

  1. GET _search
  2. {
  3. "query": {
  4. "match_all": {}
  5. }
  6. }

copy

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

  1. GET _search
  2. {
  3. "query": {
  4. "match_none": {}
  5. }
  6. }

copy