NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Span Multi Term Query Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Span Multi Term Query Usage
editFluent DSL example
editq
.SpanMultiTerm(c => c
.Name("named_query")
.Boost(1.1)
.Match(sq => sq
.Prefix(pr => pr.Field(p => p.Description).Value("pre-*"))
)
)
Object Initializer syntax example
editnew SpanMultiTermQuery
{
Name = "named_query",
Boost = 1.1,
Match = new PrefixQuery { Field = Infer.Field<Project>(f => f.Description), Value = "pre-*" }
}
Example json output.
{
"span_multi": {
"_name": "named_query",
"boost": 1.1,
"match": {
"prefix": {
"description": {
"value": "pre-*"
}
}
}
}
}