# Elastic Search Aggregations Slow

**URL:** <https://discuss.elastic.co/t/elastic-search-aggregations-slow/286701>\
**Category:** Elasticsearch\
**Created:** [October 14, 2021, 9:24am UTC](https://discuss.elastic.co/t/elastic-search-aggregations-slow/286701 "2021-10-14T09:24:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [October 14, 2021, 12:05pm UTC](https://discuss.elastic.co/t/elastic-search-aggregations-slow/286701/6 "2021-10-14T12:05:50Z")

</div>

You might be running into this bug [Slow StringTermsAggregatorFromFilters · Issue #76104 · elastic/elasticsearch (github.com)](https://github.com/elastic/elasticsearch/issues/76104) in 7.13.x, which was fixed in 7.14.0.

You can see if this is the case, by using the issues provided workaround, setting the following cluster setting:

```json
"search.aggs.rewrite_to_filter_by_filter": false

```

I ran into a fairly similar issue not too long ago with a somewhat simple agg, and this turned out to be the issue.

But as mentioned previously, being able to see the query and agg you're actually running would be helpful here.

---

_[View the full topic](https://discuss.elastic.co/t/elastic-search-aggregations-slow/286701)._
