21 lines
466 B
Plaintext
21 lines
466 B
Plaintext
[[query-dsl-match-all-query]]
|
|
=== Match All Query
|
|
|
|
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 }
|
|
}
|
|
--------------------------------------------------
|