Elasticsearch : Replace aggregation with fieldsstats

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

You cannot use filters with field stats - https://www.elastic.co/guide/en/elasticsearch/reference/5.1/search-field-stats.html

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