You are looking at preliminary documentation for a future release.
Not what you want? See the
current release documentation.
Span Term Query Usageedit
Fluent DSL Exampleedit
q
.SpanTerm(c => c
.Name("named_query")
.Boost(1.1)
.Field("user")
.Value("kimchy")
)Object Initializer Syntax Exampleedit
new 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"
}
}
}