I am a newbie to ES. I am developing a small tool in my organisation to enable Querying the elastic search from a UI. I need to get all the fields available in the index. And I know kibana is fetching those fields from the mapping. But I wonder how does it fetch the available fields when we apply some filters. How does it fetch the fields available in the documents pertaining to the filter applied? Because the documents might not contain all the fields as in the mapping when the filter is applied.
Kindly help me to understand , how can I get the available fields list even when the filter is applied.
Thanks in advance.