Our need is to create a search UI with same faceted search as on Kibana Discover tab.
Search will be on random jsons in any Index.
Can somebody tell me how to get the faceted data (What should be my ES queries?) for getting the data categorization for each json key and the percentage count of values in my search results?
Please help !