OpenSearch/docs/reference/query-dsl/or-query.asciidoc
Adrien Grand a0af88e996 Query DSL: Remove filter parsers.
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`.
2015-05-07 20:14:34 +02:00

30 lines
641 B
Plaintext

[[query-dsl-or-query]]
== Or Query
deprecated[2.0.0, Use the `bool` query instead]
A query that matches documents using the `OR` boolean operator on other
queries.
[source,js]
--------------------------------------------------
{
"filtered" : {
"query" : {
"term" : { "name.first" : "shay" }
},
"filter" : {
"or" : [
{
"term" : { "name.second" : "banon" }
},
{
"term" : { "name.nick" : "kimchy" }
}
]
}
}
}
--------------------------------------------------