summaryrefslogtreecommitdiff
path: root/docs/reference/query-dsl/queries/match-all-query.asciidoc
blob: 2ea3d410bfda4416fde3ce46ad72d6d213581f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[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 }
}
--------------------------------------------------