You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Missing Query Usageedit
Fluent DSL Exampleedit
q
.Missing(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.NullValue()
.Existence()
)Object Initializer Syntax Exampleedit
new MissingQuery
{
Name = "named_query",
Boost = 1.1,
Field = "description",
NullValue = true,
Existence = true
}Example json output.
{
"missing": {
"_name": "named_query",
"boost": 1.1,
"existence": true,
"field": "description",
"null_value": true
}
}