match-all-query.asciidoc 466 B

1234567891011121314151617181920
  1. [[query-dsl-match-all-query]]
  2. === Match All Query
  3. A query that matches all documents. Maps to Lucene `MatchAllDocsQuery`.
  4. [source,js]
  5. --------------------------------------------------
  6. {
  7. "match_all" : { }
  8. }
  9. --------------------------------------------------
  10. Which can also have boost associated with it:
  11. [source,js]
  12. --------------------------------------------------
  13. {
  14. "match_all" : { "boost" : 1.2 }
  15. }
  16. --------------------------------------------------