1234567891011121314151617181920212223242526272829 |
- [[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" }
- }
- ]
- }
- }
- }
- --------------------------------------------------
|