The exists filter has been replaced by exists query from ES 2.1, though the working of it is the same. Also, the missing filter is removed and missing query deprecated.
To get all docs which have a particular field,
"bool": {
"must": {
"exists": {
"field": "my_field"
}
}
}
and to get all docs which does NOT have a particular field, use it with must_not like this
"bool": {
"must_not": {
"exists": {
"field": "my_field"
}
}
}
Elastic docs: https://www.elastic.co/guide/en/elasticsearch/reference/2.3/query-dsl-missing-query.html