IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Span Or Query Usage
editSpan Or Query Usage
editFluent DSL example
editq .SpanOr(sn => sn .Name("named_query") .Boost(1.1) .Clauses( c => c.SpanTerm(st => st.Field("field").Value("value1")), c => c.SpanTerm(st => st.Field("field").Value("value2")), c => c.SpanTerm(st => st.Field("field").Value("value3")) ) )
Object Initializer syntax example
editnew SpanOrQuery { Name = "named_query", Boost = 1.1, Clauses = new List<ISpanQuery> { new SpanQuery { SpanTerm = new SpanTermQuery { Field = "field", Value = "value1" } }, new SpanQuery { SpanTerm = new SpanTermQuery { Field = "field", Value = "value2" } }, new SpanQuery { SpanTerm = new SpanTermQuery { Field = "field", Value = "value3" } } }, }
Example json output.
{ "span_or": { "_name": "named_query", "boost": 1.1, "clauses": [ { "span_term": { "field": { "value": "value1" } } }, { "span_term": { "field": { "value": "value2" } } }, { "span_term": { "field": { "value": "value3" } } } ] } }