Match all query

The most simple query, which matches all documents, giving them all a _score of 1.0.

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

The _score can be changed with the boost parameter:

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

Match None Query

This is the inverse of the match_all query, which matches no documents.

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