OpenSearch/docs/reference/query-dsl/match-all-query.asciidoc
James Rodewig 988e8c8fc6
[DOCS] Swap [float] for [discrete] (#60134)
Changes instances of `[float]` in our docs for `[discrete]`.

Asciidoctor prefers the `[discrete]` tag for floating headings:
https://asciidoctor.org/docs/asciidoc-asciidoctor-diffs/#blocks
2020-07-23 12:42:33 -04:00

47 lines
929 B
Plaintext

[[query-dsl-match-all-query]]
== Match all query
++++
<titleabbrev>Match all</titleabbrev>
++++
The most simple query, which matches all documents, giving them all a `_score`
of `1.0`.
[source,console]
--------------------------------------------------
GET /_search
{
"query": {
"match_all": {}
}
}
--------------------------------------------------
The `_score` can be changed with the `boost` parameter:
[source,console]
--------------------------------------------------
GET /_search
{
"query": {
"match_all": { "boost" : 1.2 }
}
}
--------------------------------------------------
[[query-dsl-match-none-query]]
[discrete]
== Match None Query
This is the inverse of the `match_all` query, which matches no documents.
[source,console]
--------------------------------------------------
GET /_search
{
"query": {
"match_none": {}
}
}
--------------------------------------------------