May be is a very stupid question, What is the best way to check if a field of a document in elasticsearch exists? I can\'t find anything in the documentation.
For ex
You can use exists filter:
{ "query": { "filtered": { "filter": { "exists": { "field": "status" } }, "query": { "match_all": {} } } } }
Regards, Alain