# Search field fail after increase the numbers of limited field

**URL:** <https://discuss.elastic.co/t/search-field-fail-after-increase-the-numbers-of-limited-field/206534>\
**Category:** Elasticsearch\
**Created:** [November 5, 2019, 7:15am UTC](https://discuss.elastic.co/t/search-field-fail-after-increase-the-numbers-of-limited-field/206534 "2019-11-05T07:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [November 5, 2019, 7:15am UTC](https://discuss.elastic.co/t/search-field-fail-after-increase-the-numbers-of-limited-field/206534/1 "2019-11-05T07:15:42Z")

</div>

Dear all  
After my co worker increase the numbers of limit field when i needed to add more field to an index

```auto
"settings" : {
    "index.mapping.total_fields.limit": 2000
  },

```

now everytime i search something on that specific index i got an `query_shard_exception`  
and when i check the detail of the error i see that

```auto
field expansion matches too many fields, limit: 1024, got: 1117

```

when i search for answer they say i should increase the `indices.query.bool.max_clause_count`  
Are there any other way to fix this and if not can someone tell me how to change the above value

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:** [December 3, 2019, 7:15am UTC](https://discuss.elastic.co/t/search-field-fail-after-increase-the-numbers-of-limited-field/206534/2 "2019-12-03T07:15:49Z")

</div>

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