NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Span First Query Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Span First Query Usage
editFluent DSL example
editq .SpanFirst(c => c .Name("named_query") .Boost(1.1) .Match(sq => sq .SpanTerm(st => st.Field(p => p.Name).Value("value")) ) .End(3) )
Object Initializer syntax example
editnew SpanFirstQuery { Name = "named_query", Boost = 1.1, End = 3, Match = new SpanQuery { SpanTerm = new SpanTermQuery { Field = "name", Value = "value" } } }
Example json output.
{ "span_first": { "_name": "named_query", "boost": 1.1, "match": { "span_term": { "name": { "value": "value" } } }, "end": 3 } }