# Situation after updating Mapping of Elastic

**URL:** https://discuss.elastic.co/t/situation-after-updating-mapping-of-elastic/216175
**Category:** Elasticsearch
**Created:** [January 23, 2020, 4:48am UTC](https://discuss.elastic.co/t/situation-after-updating-mapping-of-elastic/216175 "2020-01-23T04:48:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)
#### Post date: [January 23, 2020, 4:48am UTC](https://discuss.elastic.co/t/situation-after-updating-mapping-of-elastic/216175/1 "2020-01-23T04:48:55Z")

</div>

Hi all,  
I will explain a situation, please suggest all possible solutions.  
Lets say, I create a static mapping( **dynamic= false** ) for two attributes " **name**" , " **surname**" and add one million documents(with additional fields like "mail") to Elastic.  
Later i update mapping with one more field " **email**", and start adding users.

Obviously in the first case you cant't search on "email". To do so you have to push those one million objects again.

Is there any better approach, to solve this.

Thanks,  
Mohan

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [January 23, 2020, 8:28am UTC](https://discuss.elastic.co/t/situation-after-updating-mapping-of-elastic/216175/2 "2020-01-23T08:28:28Z")

</div>

Hi,

Can you provide full mapping of the index ?

I may not understand clearly in which state the mapping is.

Did you push 1m docs with the fieldname "mail" and now you just renamed it to "email" so for me in the mappings you have two "mail" field.

---

<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: [February 20, 2020, 8:28am UTC](https://discuss.elastic.co/t/situation-after-updating-mapping-of-elastic/216175/3 "2020-02-20T08:28:30Z")

</div>

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