Elasticsearch : Replace aggregation with fieldsstats

(banupriya) #1

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

(Mark Walkom) #2

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

(system) #3

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