match-all-query.asciidoc 751 B

12345678910111213141516171819202122232425262728
  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. --------------------------------------------------
  14. [[query-dsl-match-none-query]]
  15. [float]
  16. == Match None Query
  17. This is the inverse of the `match_all` query, which matches no documents.
  18. [source,js]
  19. --------------------------------------------------
  20. { "match_none": {} }
  21. --------------------------------------------------