terms aggregation can only run on non-analyzed fields, so this usually is the corresponding .keyword field (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#CO140-1). You can check this in the index-pattern details in Kibana.
Discover just shows the raw source-values, but not all of them support aggregations.