elasticsearch query field oenst exist code example
Example 1: exists query elasticsearch 5.4
GET /_search
{
"query": {
"exists": {
"field": "user"
}
}
}
Example 2: exists query elasticsearch 5.4
GET /_search
{
"query": {
"bool": {
"must_not": {
"exists": {
"field": "user"
}
}
}
}
}