IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Exists Query Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Exists Query Usage
editFluent DSL example
editq
.Exists(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
)
Object Initializer syntax example
editnew ExistsQuery
{
Name = "named_query",
Boost = 1.1,
Field = "description",
}
Example json output.
{
"exists": {
"_name": "named_query",
"boost": 1.1,
"field": "description"
}
}