mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
This commit makes queries and filters parsed the same way using the QueryParser abstraction. This allowed to remove duplicate code that we had for similar queries/filters such as `range`, `prefix` or `term`.
21 lines
465 B
Plaintext
21 lines
465 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 }
|
|
}
|
|
--------------------------------------------------
|