Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 707 Bytes

query-dsl-match-all-query.md

File metadata and controls

45 lines (34 loc) · 707 Bytes
navigation_title mapped_pages
Match all

Match all query [query-dsl-match-all-query]

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

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

The _score can be changed with the boost parameter:

GET /_search
{
  "query": {
    "match_all": { "boost" : 1.2 }
  }
}

Match None Query [query-dsl-match-none-query]

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

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