# Search API Filters - Limits - Arrays

**URL:** https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [October 20, 2022, 9:52am UTC](https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095 "2022-10-20T09:52:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)
#### Post date: [October 20, 2022, 9:52am UTC](https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095/1 "2022-10-20T09:52:16Z")

</div>

Hi 👋

Documentation ([Search API Filters](https://www.elastic.co/guide/en/app-search/current/filters.html#filters-arrays-vs-objects)) states that there are the following limits when filtering a search query:

- **(A)** max 32 filters
- **(B)** arrays can't contain more than 1024 values

I have a use case where I need to divide a certain value filter into multiple filter clauses because of **(B)**

```auto
"any": [
            {
                "groups": ["v1", "v2","v3", ..., "v1024-MAX ! ! "]
            },
            {
                "groups": ["v1024", "v1024","v1024", ..., "v2048-MAX ! ! "]
            },
            {
                "groups": [...]
            },
            // ...
        ]

```

However, with time and bigger customers, and because of new and different filters perhaps, I am suspecting we could potentially reach the limit for **(A) 32 filters**.

**Question**

- Is there the possibility to configure bigger limits either for **(A)** or **(B)**?
- If not, would there be in the future ?
- Any other solution if none of the above ?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)
#### Post date: [October 20, 2022, 10:21am UTC](https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095/2 "2022-10-20T10:21:08Z")

</div>

hey @Gerardo_Zenobi

Unfortunately these limits cannot be increased ([limits doc](https://www.elastic.co/guide/en/app-search/current/limits.html)) and unfortunately there isn't anything on the roadmap that will increase this limit.

I will chat with our team to see if this could be configurable. I suspect this wont be simple with Elasticsearch having its own limits around max clauses.

Joe

---

<div class="post-metadata">

### Author: ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)
#### Post date: [October 20, 2022, 10:48am UTC](https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095/3 "2022-10-20T10:48:13Z")

</div>

Thanks @joemcelroy

> I will chat with our team to see if this could be configurable. I suspect this wont be simple with Elasticsearch having its own limits around max clauses.

Please keep me posted 🙏

Gerardo.

---

<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: [November 17, 2022, 10:48am UTC](https://discuss.elastic.co/t/search-api-filters-limits-arrays/317095/4 "2022-11-17T10:48:48Z")

</div>

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