span-or-query.asciidoc 636 B

123456789101112131415161718192021222324
  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. GET /_search
  8. {
  9. "query": {
  10. "span_or" : {
  11. "clauses" : [
  12. { "span_term" : { "field" : "value1" } },
  13. { "span_term" : { "field" : "value2" } },
  14. { "span_term" : { "field" : "value3" } }
  15. ]
  16. }
  17. }
  18. }
  19. --------------------------------------------------
  20. // CONSOLE
  21. The `clauses` element is a list of one or more other span type queries.