OpenSearch/docs/reference/query-dsl/queries/span-multi-term-query.asciidoc
cgp b1e6df3b6c Update span-multi-term-query.asciidoc
Added comma - there is no "term range" query

Closes #9855
2015-02-28 03:05:05 +01:00

31 lines
757 B
Plaintext

[[query-dsl-span-multi-term-query]]
=== Span Multi Term Query
The `span_multi` query allows you to wrap a `multi term query` (one of wildcard,
fuzzy, prefix, term, range or regexp query) as a `span query`, so
it can be nested. Example:
[source,js]
--------------------------------------------------
{
"span_multi":{
"match":{
"prefix" : { "user" : { "value" : "ki" } }
}
}
}
--------------------------------------------------
A boost can also be associated with the query:
[source,js]
--------------------------------------------------
{
"span_multi":{
"match":{
"prefix" : { "user" : { "value" : "ki", "boost" : 1.08 } }
}
}
}
--------------------------------------------------