# \[400\] Filters cannot have more than 32 filters

**URL:** https://discuss.elastic.co/t/400-filters-cannot-have-more-than-32-filters/263091
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [February 3, 2021, 8:13am UTC](https://discuss.elastic.co/t/400-filters-cannot-have-more-than-32-filters/263091 "2021-02-03T08:13:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Swapnil\_Ghorpade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnil_ghorpade/32/56943_2.png) [@Swapnil\_Ghorpade](https://discuss.elastic.co/u/Swapnil_Ghorpade)
#### Post date: [February 3, 2021, 8:13am UTC](https://discuss.elastic.co/t/400-filters-cannot-have-more-than-32-filters/263091/1 "2021-02-03T08:13:04Z")

</div>

Error : An unexpected error occurred: [400] Filters cannot have more than 32 filters

Im trying to filter out documents using **none** filter.  
The search api return data properly on passing array upto 32 filters. but for more than 32 filters its throwing above error.

PFA

 ![searchFilter issue](https://us1.discourse-cdn.com/elastic/original/3X/3/8/3859a83760b70a83fef6bf58cf8a09125ecb4464.png)

---

<div class="post-metadata">

### Author: ![Swapnil\_Ghorpade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnil_ghorpade/32/56943_2.png) [@Swapnil\_Ghorpade](https://discuss.elastic.co/u/Swapnil_Ghorpade)
#### Post date: [February 3, 2021, 8:24am UTC](https://discuss.elastic.co/t/400-filters-cannot-have-more-than-32-filters/263091/3 "2021-02-03T08:24:34Z")

</div>

@JasonStoltz Please refer this post:

> [@How to exclude facets in filters or get conditional filters/conditionalFacets](https://discuss.elastic.co/t/how-to-exclude-facets-in-filters-or-get-conditional-filters-conditionalfacets/206044/4):
>
> @Swapnil_Ghorpade To exclude two states from a search, you would use a "none" filter: [https://swiftype.com/documentation/app-search/api/search/filters#combining-filters](https://swiftype.com/documentation/app-search/api/search/filters#combining-filters) "filters": { "none": [{ "title": "Texas" }, { "title": "Florida" }] } And again, if you're trying to restrict that at a user level, then you would generate a signed search key for that user with the above filter applied.

---

<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: [March 3, 2021, 8:25am UTC](https://discuss.elastic.co/t/400-filters-cannot-have-more-than-32-filters/263091/4 "2021-03-03T08:25:07Z")

</div>

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