WARNING: Version 2.3 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Or Query
editOr Query
editDeprecated in 2.0.0-beta1.
Use the bool
query instead
A query that matches documents using the OR
boolean operator on other
queries.
{ "filtered" : { "query" : { "term" : { "name.first" : "shay" } }, "filter" : { "or" : [ { "term" : { "name.second" : "banon" } }, { "term" : { "name.nick" : "kimchy" } } ] } } }