Elasticsearch : Alternate approach to get frequency count without using aggregation

68 views Asked by At

We are trying to get the frequency count for search terms using aggregation. Since there are three keys for which we need to get the frequency count facing performance degrade with respect to search. How to get frequency count without aggregation? Please suggest some alternate approach.

Query:

{ "aggs": { "name_exct": { "filter": { "term": { "name_exct": "test" } }, "aggs": { "name_exct_count": { "terms": { "field": "name_exct" } } } }, "CITY": { "filter": { "term": { "CITY": "US" }, "aggs": { "CITY_count": { "terms": { "field": "CITY" } } } } } }

0

There are 0 answers