No-Value Search
No-Value Search🔗
skills:--
language:{name:Dutch level:(2 --)}
It is possible to search explicitly for documents having no value indexed for a certain field. This is especially useful in OR-combination with other values to include documents having no value as well.
It is not possible to perform a no-value search on the full-text field.
No-Value on Nested Fields🔗
Executing no value search on a nested field excludes documents that doesn't contain the parent field at all.
For example imagine 3 documents indexed with the following content. In this case executing job.title:--
query
would only return Doc2
. This is because Doc1
does not have the parent field ("job") at all. If someone requires
both Doc1
and Doc2
returned in this example, job:({title:--} --)
Doc1
"job": [],
------------------------------
Doc2
"job": [{
"title": "myTitle"
}]
------------------------------
Doc3
"job": [{
"title": "myTitle",
"description": "Some info"
}]