# I want to increase the number of filters that can be applied

**URL:** <https://discuss.elastic.co/t/i-want-to-increase-the-number-of-filters-that-can-be-applied/224357>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [March 20, 2020, 6:10am UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-filters-that-can-be-applied/224357 "2020-03-20T06:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sikeeoh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sikeeoh/32/64782_2.png) [@sikeeoh](https://discuss.elastic.co/u/sikeeoh)\
**Post date:** [March 20, 2020, 6:10am UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-filters-that-can-be-applied/224357/1 "2020-03-20T06:10:59Z")

</div>

**I send the id of the product I need to search for, but this is 70,000.**

but app search limit 32,768  
Is there any way to increase from 32768?

#### ARRAYS VS. OBJECTS

Be mindful of the 32 filters limit when building large filtered queries.

Instead of stacking objects, you can use an array when values share a field.

Each array can contain 1024 values.

If need be, you can use 32 full arrays to filter on a total of 32,768 values.

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [March 26, 2020, 12:01pm UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-filters-that-can-be-applied/224357/2 "2020-03-26T12:01:24Z")

</div>

I don't think there is a way to increase this currently.

---

<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:** [April 23, 2020, 12:01pm UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-filters-that-can-be-applied/224357/3 "2020-04-23T12:01:37Z")

</div>

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