OpenSearch/docs/reference/query-dsl/span-multi-term-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

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