Our ES index consists of user records with "Personally identifiable information"(PII). And all the data is supposed to be queried only at the aggregated level.
We currently ask all our clients to include min_doc_count in the terms aggregation. However, we are looking for a possibility of enforcing some threshold by default. So if the terms aggregation doesn't have a min_doc_count defined, we would want to enforce it with minimum hit count threshold.
Is this possible via a index/cluster level config or as a filtered alias or something ?