You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Term Query Usageedit
Fluent DSL Exampleedit
q
.Term(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.Value("project description")
)Object Initializer Syntax Exampleedit
new TermQuery
{
Name = "named_query",
Boost = 1.1,
Field = "description",
Value = "project description"
}Example json output.
{
"term": {
"description": {
"_name": "named_query",
"boost": 1.1,
"value": "project description"
}
}
}