# Field expansion for \[\*\] matches too many fields, limit: 1024, got: 1998

**URL:** https://discuss.elastic.co/t/field-expansion-for-matches-too-many-fields-limit-1024-got-1998/279168
**Category:** Kibana
**Created:** [July 20, 2021, 1:32pm UTC](https://discuss.elastic.co/t/field-expansion-for-matches-too-many-fields-limit-1024-got-1998/279168 "2021-07-20T13:32:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vaishno.avi](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vaishno.avi](https://discuss.elastic.co/u/vaishno.avi)
#### Post date: [July 20, 2021, 1:32pm UTC](https://discuss.elastic.co/t/field-expansion-for-matches-too-many-fields-limit-1024-got-1998/279168/1 "2021-07-20T13:32:19Z")

</div>

Hello,

We have recently moved from AWS ES 5.x to 7.10. While performing search operation I go get the above error. In total my fields are between 2500 to 4000 for now. I know these values are not good, but this somehow worked on the old ES cluster.  
I have already increased the value for `indices.query.bool.max_clause_count` to 2048 for now . I see this is a common problem.

Can you guide me any documentation for the fix or increasing indices.query.bool.max\_clause\_count or reducing fields are the only solution?

Regards  
Ashish

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [July 22, 2021, 10:27am UTC](https://discuss.elastic.co/t/field-expansion-for-matches-too-many-fields-limit-1024-got-1998/279168/2 "2021-07-22T10:27:12Z")

</div>

Hi Ashish, we currently don't provide support for AWS ES, please refer to their discussion forum to get specific support (we can't be sure if differences exists in implementation/configuration/behaviour between ES and the OpenSearch code).  
The only suggestion out of my mind is to increase the value of `index.mapping.total_fields.limit`

> **[Mapping limit settings | Elasticsearch Guide \[7.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-settings-limit.html)**

---

<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: [August 19, 2021, 10:27am UTC](https://discuss.elastic.co/t/field-expansion-for-matches-too-many-fields-limit-1024-got-1998/279168/3 "2021-08-19T10:27:21Z")

</div>

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