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 First Query Usage
editSpan 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 } }