Is it possible to use range aggregations in ElasticSearch with alphabetical ranges?
You can apply that range
query to a terms
agg if that's what you're after:
{ "size": 0, "aggs": { "filtered_content_terms": { "filter": { "range": { "content.keyword": { "gte": "Bread" } } }, "aggs": { "content_terms": { "terms": { "field": "content.keyword", "size": 10 } } } } }}