match-all-query.asciidoc 480 B

1234567891011121314151617
  1. [[query-dsl-match-all-query]]
  2. == Match All Query
  3. The most simple query, which matches all documents, giving them all a `_score`
  4. of `1.0`.
  5. [source,js]
  6. --------------------------------------------------
  7. { "match_all": {} }
  8. --------------------------------------------------
  9. The `_score` can be changed with the `boost` parameter:
  10. [source,js]
  11. --------------------------------------------------
  12. { "match_all": { "boost" : 1.2 }}
  13. --------------------------------------------------