How to get the field names which have no data or null in elasticsearch dynamically?

How do we get the field names with no data in them? For example, in an index, there is a field that is present in the mapping but no data is indexed in this case. So I want a list of all the field names or keys where there is no data present. Kindly help me out with this query. I don't want to use all the field names in the exists query. This should work for any index.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.