elasticsearch/docs/reference/query-dsl/span-or-query.asciidoc
Mayya Sharipova d6c53e03d2
Improve span queries documentation (#103490)
Improvement includes:
1. Remove reference to Lucene queries (this information is not necessary
for Elastic users, and can be outdated)
2. For `span_field_masking` include a node to use
"require_field_match" : false parameter for highlighters to work.

Closes #101804
2023-12-19 14:51:19 -05:00

25 lines
579 B
Text

[[query-dsl-span-or-query]]
=== Span or query
++++
<titleabbrev>Span or</titleabbrev>
++++
Matches the union of its span clauses. Here is an example:
[source,console]
--------------------------------------------------
GET /_search
{
"query": {
"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.