OpenSearch/docs/reference/query-dsl/span-or-query.asciidoc
Adrien Grand a0af88e996 Query DSL: Remove filter parsers.
This commit makes queries and filters parsed the same way using the
QueryParser abstraction. This allowed to remove duplicate code that we had
for similar queries/filters such as `range`, `prefix` or `term`.
2015-05-07 20:14:34 +02:00

21 lines
562 B
Plaintext

[[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.