# Impact of adding multi-field to existing field with PUT mapping API in PROD

**URL:** <https://discuss.elastic.co/t/impact-of-adding-multi-field-to-existing-field-with-put-mapping-api-in-prod/208438>\
**Category:** Elasticsearch\
**Created:** [November 19, 2019, 6:11am UTC](https://discuss.elastic.co/t/impact-of-adding-multi-field-to-existing-field-with-put-mapping-api-in-prod/208438 "2019-11-19T06:11:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShilpiRachna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shilpirachna/32/42261_2.png) [@ShilpiRachna](https://discuss.elastic.co/u/ShilpiRachna)\
**Post date:** [November 19, 2019, 6:11am UTC](https://discuss.elastic.co/t/impact-of-adding-multi-field-to-existing-field-with-put-mapping-api-in-prod/208438/1 "2019-11-19T06:11:55Z")

</div>

Hi,

We are using Elasticsearch 6.2.4 in production.

Due to a new requirement, we need to add a new multi-field to an existing date field. We are using PUT mapping API for the same.

PUT {index name}/\_mapping/{type name}  
{  
"properties": {  
"indexedTimeStamp": {  
"type": "date",  
"store": true,  
"doc\_values": false,  
"format": "epoch\_second",  
_ **"fields": {** _  
_ **"dv": {** _  
_ **"type": "date",** _  
_ **"format": "epoch\_second"** _  
} } } } }

Is it safe to do this in PROD with large (upto ~100GB) shards?

What are the expected effects of this command? Increase in IOPS / CPU? Would we see throttling?

Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 19, 2019, 8:23am UTC](https://discuss.elastic.co/t/impact-of-adding-multi-field-to-existing-field-with-put-mapping-api-in-prod/208438/2 "2019-11-19T08:23:27Z")

</div>

It will just update the mapping.  
If you don't reindex, no change will happen on the existing data.

---

<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 17, 2019, 8:23am UTC](https://discuss.elastic.co/t/impact-of-adding-multi-field-to-existing-field-with-put-mapping-api-in-prod/208438/3 "2019-12-17T08:23:39Z")

</div>

Closed on December 17, 2019, 8:23am UTC

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