How to use the field data API to get the frequency count of a search query. EX: "aggs" : { "my-terms" : {"filters" : { "filters" : { "name" : { "term" : { "zip_key" : "20156" }}}}}}.
How to replace the same using field stats API without using aggregation.
Or is there any other solution to get term frequency count other than aggregation