# Elastic search 8.5.3 Aggregations query erroring

**URL:** <https://discuss.elastic.co/t/elastic-search-8-5-3-aggregations-query-erroring/330777>\
**Category:** Elasticsearch\
**Created:** [April 25, 2023, 11:09pm UTC](https://discuss.elastic.co/t/elastic-search-8-5-3-aggregations-query-erroring/330777 "2023-04-25T23:09:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [April 26, 2023, 3:19pm UTC](https://discuss.elastic.co/t/elastic-search-8-5-3-aggregations-query-erroring/330777/11 "2023-04-26T15:19:24Z")

</div>

I think you are hitting a similar issue described here and probably the workaround helps you:

> [@Elastic Search Aggregations Slow](https://discuss.elastic.co/t/elastic-search-aggregations-slow/286701/6):
>
> 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: "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 quer…

Would it be possible for you to open an issue in the [Elasticsearch repository](https://github.com/elastic/elasticsearch/issues) providing as much information so we can reproduce it?

Thanks!

---

_[View the full topic](https://discuss.elastic.co/t/elastic-search-8-5-3-aggregations-query-erroring/330777)._
