mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
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
25 lines
579 B
Text
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.
|