NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Span Term Query Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Span Term Query Usage
editFluent DSL example
editq
.SpanTerm(c => c
.Name("named_query")
.Boost(1.1)
.Field("user")
.Value("kimchy")
)
Object Initializer syntax example
editnew SpanTermQuery
{
Name = "named_query",
Boost = 1.1,
Value = "kimchy",
Field = "user"
}
Example json output.
{
"span_term": {
"user": {
"_name": "named_query",
"boost": 1.1,
"value": "kimchy"
}
}
}