summaryrefslogtreecommitdiff
path: root/docs/reference/query-dsl/queries/span-or-query.asciidoc
blob: 72a4ce8724b289d3896dbca5e23f05f8d85ff277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[query-dsl-span-or-query]]
=== Span Or Query

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

[source,js]
--------------------------------------------------
{
    "span_or" : {
        "clauses" : [
            { "span_term" : { "field" : "value1" } },
            { "span_term" : { "field" : "value2" } },
            { "span_term" : { "field" : "value3" } }
        ]
    }
}
--------------------------------------------------

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