OpenSearch/docs/reference/query-dsl/queries/span-multi-term-query.asciidoc
Alexander Reelsen dfcb3ca2d4 RegexpQueryBuilder now implements MultiTermQueryBuilder
This allows the RegexpQueryBuilder to be used in span queries

Added tests for all span multi term queries.
Also updated the documentation and removed mentioning of numeric range
queries for span queries (they have to be terms).

Closes #3392
2013-10-31 09:12:57 +01:00

31 lines
746 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
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 } }
}
}
}
--------------------------------------------------