2013-08-28 19:24:34 -04:00
|
|
|
[[query-dsl-match-all-query]]
|
2015-05-05 02:27:52 -04:00
|
|
|
== Match All Query
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
The most simple query, which matches all documents, giving them all a `_score`
|
|
|
|
of `1.0`.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2015-06-03 19:59:22 -04:00
|
|
|
{ "match_all": {} }
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
The `_score` can be changed with the `boost` parameter:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2015-06-03 19:59:22 -04:00
|
|
|
{ "match_all": { "boost" : 1.2 }}
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|