# Mapper size plugin on Elastic Cloud

**URL:** <https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161>\
**Category:** Elasticsearch\
**Created:** [April 25, 2022, 12:54pm UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161 "2022-04-25T12:54:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hebph001](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hebph001](https://discuss.elastic.co/u/hebph001)\
**Post date:** [April 25, 2022, 12:54pm UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161/1 "2022-04-25T12:54:48Z")

</div>

Hello,

I've enabled the mapper size plugin on my Elastic Cloud cluster and would like to know how can I add that new field mapping to my existing indices? I know that I have to modify my index templates to add the mapping but the changes are only reflected on the new index (I test it on one index). Is it possible to do this without waiting for the next rollover to happen?

Also, the [documentation](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size-usage.html) shows the enablement, but only on new index upon creation.

Thanks in advance

Philippe

---

<div class="post-metadata">

**Author:** ![hebph001](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hebph001](https://discuss.elastic.co/u/hebph001)\
**Post date:** [April 25, 2022, 3:57pm UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161/2 "2022-04-25T15:57:19Z")

</div>

I was also wondering how can I add the new mapping in bulk to fleet managed data streams index templates? I was thinking that I could create a component template with the \_size meta field enabled and then add this to all of my index templates, but I don't see how can I achieve this without manually going through all of my 100 indices...

---

<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:** [April 26, 2022, 1:59am UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161/3 "2022-04-26T01:59:31Z")

</div>

You can add it to the existing indices yes, just update the mappings. Existing documents will have a null value for it, but new documents will have it populated.

You would be better off making a separate topic for your other question 🙂

---

<div class="post-metadata">

**Author:** ![hebph001](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hebph001](https://discuss.elastic.co/u/hebph001)\
**Post date:** [April 26, 2022, 11:15am UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161/4 "2022-04-26T11:15:51Z")

</div>

Thank you for your reply. I will follow your advice and open post my second question in another topic.

---

<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:** [May 24, 2022, 11:16am UTC](https://discuss.elastic.co/t/mapper-size-plugin-on-elastic-cloud/303161/5 "2022-05-24T11:16:48Z")

</div>

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