# Same mapping over the index in elasticsearch

**URL:** <https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109>\
**Category:** Elasticsearch\
**Created:** [June 17, 2016, 7:52am UTC](https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109 "2016-06-17T07:52:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunil\_G.C](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@Sunil\_G.C](https://discuss.elastic.co/u/Sunil_G.C)\
**Post date:** [June 17, 2016, 7:52am UTC](https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109/1 "2016-06-17T07:52:24Z")

</div>

I am working on a project which is currently using **elasticsearch** 1.4, Now we are going to upgrade elasticsearch,We have so many field which have different mapping on different record type .

We have some common field on different record type and have different implementation as per our requirement so they have different mapping as well. Is there any way to have different mapping over the same index?

Is there any meaning to make field mapping **nested** type which just require type **string**?

---

<div class="post-metadata">

**Author:** ![iliasse](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@iliasse](https://discuss.elastic.co/u/iliasse)\
**Post date:** [June 17, 2016, 9:15am UTC](https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109/2 "2016-06-17T09:15:10Z")

</div>

Hi,  
To what version you're upgrading ?  
Have a look to Templates. I'm using them for langage analyzers (and marvel indices)  
here's the official doc : [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html)

---

<div class="post-metadata">

**Author:** ![Sunil\_G.C](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@Sunil\_G.C](https://discuss.elastic.co/u/Sunil_G.C)\
**Post date:** [June 17, 2016, 9:24am UTC](https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109/3 "2016-06-17T09:24:41Z")

</div>

I am upgrading to 2.3.3 version.

---

<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 5, 2017, 10:42pm UTC](https://discuss.elastic.co/t/same-mapping-over-the-index-in-elasticsearch/53109/4 "2017-07-05T22:42:48Z")

</div>


