# Changing mapping type

**URL:** <https://discuss.elastic.co/t/changing-mapping-type/9758>\
**Category:** Elasticsearch\
**Created:** [November 19, 2012, 2:40pm UTC](https://discuss.elastic.co/t/changing-mapping-type/9758 "2012-11-19T14:40:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [November 19, 2012, 2:40pm UTC](https://discuss.elastic.co/t/changing-mapping-type/9758/1 "2012-11-19T14:40:02Z")

</div>

Hi,

I need to change list type in my document mapping and set it to be nested.  
What is the best way to do this ? The only idea on my mind is to create  
another index with new mapping and copy the data from current index to the  
new one. But I have about 400GB of data in this index and it seems not to  
be a good idea 🙂 Thanks for help.

Best regards.  
Marcin Dojwa

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 20, 2012, 12:33am UTC](https://discuss.elastic.co/t/changing-mapping-type/9758/2 "2012-11-20T00:33:23Z")

</div>

You idea is good one. There is really no other way to make significant  
mapping changes in elasticsearch at the moment.

On Monday, November 19, 2012 9:40:06 AM UTC-5, Marcin Dojwa wrote:

> Hi,
> 
> I need to change list type in my document mapping and set it to be nested.  
> What is the best way to do this ? The only idea on my mind is to create  
> another index with new mapping and copy the data from current index to the  
> new one. But I have about 400GB of data in this index and it seems not to  
> be a good idea 🙂 Thanks for help.
> 
> Best regards.  
> Marcin Dojwa

--

---

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [November 20, 2012, 8:04am UTC](https://discuss.elastic.co/t/changing-mapping-type/9758/3 "2012-11-20T08:04:11Z")

</div>

Thank you.

2012/11/20 Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com)

> You idea is good one. There is really no other way to make significant  
> mapping changes in elasticsearch at the moment.
> 
> On Monday, November 19, 2012 9:40:06 AM UTC-5, Marcin Dojwa wrote:
> 
> > Hi,
> > 
> > I need to change list type in my document mapping and set it to be  
> > nested. What is the best way to do this ? The only idea on my mind is to  
> > create another index with new mapping and copy the data from current index  
> > to the new one. But I have about 400GB of data in this index and it seems  
> > not to be a good idea 🙂 Thanks for help.
> > 
> > Best regards.  
> > Marcin Dojwa
> 
> --

--

---

<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:** [July 6, 2017, 3:03am UTC](https://discuss.elastic.co/t/changing-mapping-type/9758/4 "2017-07-06T03:03:37Z")

</div>


