Elasticsearch 2.4, Exists filter for nested objects not working
I found the correct syntax, it should have been:
GET /index/type/_search{ "query": { "bool": { "must_not": [ { "nested": { "path": "user", "query": { "exists": { "field": "user" } } } } ] } }}
Try using the parent of the user, here obj
GET users/users/_search{ "query": { "bool": { "must_not": [ { "exists": { "field": "obj.user" } } ] } }}