WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Span Multi Term Query Usage
editSpan 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.Name).Value("pre-*")) ) )
Object Initializer syntax example
editnew SpanMultiTermQuery { Name = "named_query", Boost = 1.1, Match = new PrefixQuery { Field = "name", Value = "pre-*" } }
Example json output.
{ "span_multi": { "_name": "named_query", "boost": 1.1, "match": { "prefix": { "name": { "value": "pre-*" } } } } }