# Querying with more than 1024 filters using an alias

**URL:** <https://discuss.elastic.co/t/querying-with-more-than-1024-filters-using-an-alias/238608>\
**Category:** Elasticsearch\
**Created:** [June 25, 2020, 6:46am UTC](https://discuss.elastic.co/t/querying-with-more-than-1024-filters-using-an-alias/238608 "2020-06-25T06:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111302](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111302/32/71093_2.png) [@111302](https://discuss.elastic.co/u/111302)\
**Post date:** [June 25, 2020, 6:46am UTC](https://discuss.elastic.co/t/querying-with-more-than-1024-filters-using-an-alias/238608/1 "2020-06-25T06:46:35Z")

</div>

Hi guys  
I'm performance-testing queries with a lot of filters.  
Since the configured value of max filters is 1024, I've increased **indices.query.bool.max\_clause\_count** to 10,000.  
So, regular queries are working fine (takes a lot of time to run, but it works) BUT when i create an alias with the same body, it fails when i try to use more than 1024 filters.

Is **indices.query.bool.max\_clause\_count** not affecting aliases?  
Is there any other way to use an alias with more than 1024 filters?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 23, 2020, 6:46am UTC](https://discuss.elastic.co/t/querying-with-more-than-1024-filters-using-an-alias/238608/2 "2020-07-23T06:46:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
