Span or query

Matches the union of its span clauses. The span or query maps to Lucene SpanOrQuery. Here is an example:

  1. GET /_search
  2. {
  3. "query": {
  4. "span_or" : {
  5. "clauses" : [
  6. { "span_term" : { "field" : "value1" } },
  7. { "span_term" : { "field" : "value2" } },
  8. { "span_term" : { "field" : "value3" } }
  9. ]
  10. }
  11. }
  12. }

The clauses element is a list of one or more other span type queries.