It looks like in v5 text fileds have
fielddata disabled by default, and the new
*.keyword field is not analyzed. So what is the best way to fetch the most frequent terms in an index or query result?
I'm trying to do a terms aggregation, something like the first example at https://www.elastic.co/guide/en/elasticsearch/guide/current/aggregations-and-analysis.html but it doesn't work for obvious reasons. Is there a workaround or another approach to finding popular terms?