# How to organise Elasticsearch indexes with too many dynamic fields

**URL:** <https://discuss.elastic.co/t/how-to-organise-elasticsearch-indexes-with-too-many-dynamic-fields/297531>\
**Category:** Elasticsearch\
**Created:** [February 17, 2022, 5:55pm UTC](https://discuss.elastic.co/t/how-to-organise-elasticsearch-indexes-with-too-many-dynamic-fields/297531 "2022-02-17T17:55:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushilprj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sushilprj/32/11593_2.png) [@sushilprj](https://discuss.elastic.co/u/sushilprj)\
**Post date:** [February 17, 2022, 5:55pm UTC](https://discuss.elastic.co/t/how-to-organise-elasticsearch-indexes-with-too-many-dynamic-fields/297531/1 "2022-02-17T17:55:15Z")

</div>

I have a scenario where there are too many groups, and each group has numerous documents with few standard fields and few dynamic fields. So I have created an alias for every group for an index. Now, as these groups grow, these dynamic fields are also increasing. I just hit the default 1000 fields limit.  
I plan to create an index for each group to solve too many fields issues, but I will have too many indexes problems.

Please let me know if someone knows a better way to handle this problem.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 20, 2022, 12:15pm UTC](https://discuss.elastic.co/t/how-to-organise-elasticsearch-indexes-with-too-many-dynamic-fields/297531/2 "2022-02-20T12:15:15Z")

</div>

One option is the mid-way. Create an index for each tens or hundreds groups.

Another option is using [flattened field type](https://www.elastic.co/guide/en/elasticsearch/reference/current/flattened.html) if it match your requirement.

Of course, you could raise the fields limit.

---

<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 20, 2022, 12:15pm UTC](https://discuss.elastic.co/t/how-to-organise-elasticsearch-indexes-with-too-many-dynamic-fields/297531/3 "2022-03-20T12:15:31Z")

</div>

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