span-or-query.asciidoc 563 B

1234567891011121314151617181920
  1. [[query-dsl-span-or-query]]
  2. === Span Or Query
  3. Matches the union of its span clauses. The span or query maps to Lucene
  4. `SpanOrQuery`. Here is an example:
  5. [source,js]
  6. --------------------------------------------------
  7. {
  8. "span_or" : {
  9. "clauses" : [
  10. { "span_term" : { "field" : "value1" } },
  11. { "span_term" : { "field" : "value2" } },
  12. { "span_term" : { "field" : "value3" } }
  13. ]
  14. }
  15. }
  16. --------------------------------------------------
  17. The `clauses` element is a list of one or more other span type queries.