# Dynamic index mappings and autogenerated searches

**URL:** <https://discuss.elastic.co/t/dynamic-index-mappings-and-autogenerated-searches/280767>\
**Category:** Elasticsearch\
**Created:** [August 9, 2021, 7:28am UTC](https://discuss.elastic.co/t/dynamic-index-mappings-and-autogenerated-searches/280767 "2021-08-09T07:28:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattG1](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@MattG1](https://discuss.elastic.co/u/MattG1)\
**Post date:** [August 9, 2021, 7:28am UTC](https://discuss.elastic.co/t/dynamic-index-mappings-and-autogenerated-searches/280767/1 "2021-08-09T07:28:26Z")

</div>

Hey,

I hope this is the correct category (please point me in the correct direction if it is not).

I want to give my users the ability to add custom data into an ES index and then search based on that custom data. I will be creating some kind of query language based on the ES index.

Hopefully that's enough information for that part as my question relates more to the size of index mappings and whether it's preferable to have one larger index or many smaller indexes.

I came up with two potential solutions:

1. I can put all data into one index, there's an index mapping limit of 1000 and there's a recommendation to not increase this. Despite that, I would probably need to increase the index mapping limit to 10k to be future proof.

2. I can create an index per user and keep the mapping limit of 1000.

Which of these solutions is preferable or are there other options available?

Thanks,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 10, 2021, 3:45am UTC](https://discuss.elastic.co/t/dynamic-index-mappings-and-autogenerated-searches/280767/2 "2021-08-10T03:45:15Z")

</div>

Welcome to our community! 😃

It depends on how many users you expect.  
You could always denormalise things and consider using something like [this one in the docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.14/array.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:** [September 7, 2021, 3:45am UTC](https://discuss.elastic.co/t/dynamic-index-mappings-and-autogenerated-searches/280767/3 "2021-09-07T03:45:57Z")

</div>

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