In a Elasticsearch index, I have a few fields which are referencing main categories' ids (e.g. sector_id, country_id, etc...).
These fields are solely use for filtering (using the term/terms filters) and for creating buckets in terms aggregations (among others).
Each one of them is currently using the smallest suitable numeric datatype (e.g. byte, short, etc..)
Is this the best datatype to be used on these for heavy aggregations?
Or should these be using the keyword datatype?
Thanks in advance for any advice!