Improving the performance of high-cardinality terms aggregations in Elasticsearch | Elastic Blog