span-or-query.asciidoc 627 B

1234567891011121314151617181920212223242526
  1. [[query-dsl-span-or-query]]
  2. === Span or query
  3. ++++
  4. <titleabbrev>Span or</titleabbrev>
  5. ++++
  6. Matches the union of its span clauses. The span or query maps to Lucene
  7. `SpanOrQuery`. Here is an example:
  8. [source,console]
  9. --------------------------------------------------
  10. GET /_search
  11. {
  12. "query": {
  13. "span_or" : {
  14. "clauses" : [
  15. { "span_term" : { "field" : "value1" } },
  16. { "span_term" : { "field" : "value2" } },
  17. { "span_term" : { "field" : "value3" } }
  18. ]
  19. }
  20. }
  21. }
  22. --------------------------------------------------
  23. The `clauses` element is a list of one or more other span type queries.