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
|
|
|
|
|
|
|
A query that matches all documents. Maps to Lucene `MatchAllDocsQuery`.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"match_all" : { }
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
Which can also have boost associated with it:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"match_all" : { "boost" : 1.2 }
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|