# Versioning the Index Mapping

**URL:** <https://discuss.elastic.co/t/versioning-the-index-mapping/23644>\
**Category:** Elasticsearch\
**Created:** [May 18, 2015, 9:32pm UTC](https://discuss.elastic.co/t/versioning-the-index-mapping/23644 "2015-05-18T21:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Shah](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@Sagar\_Shah](https://discuss.elastic.co/u/Sagar_Shah)\
**Post date:** [May 18, 2015, 9:32pm UTC](https://discuss.elastic.co/t/versioning-the-index-mapping/23644/1 "2015-05-18T21:32:06Z")

</div>

Hello everyone,  
Is there a way to create a mapping in elastic search (version 1.4.2) with a  
version number. So that next time, we can verify if mapping needs to be  
updated using PUT request in elastic search or not based on version number?

For example,  
I create a mapping A within an index and version it A.x. During next  
release, I perform a check to determine the version of existing index  
mapping and accordingly perform an update using PUT API of index mapping.

Please suggest.

Regards,  
Sagar Shah

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Allan\_Mitchell](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Allan\_Mitchell](https://discuss.elastic.co/u/Allan_Mitchell)\
**Post date:** [May 19, 2015, 3:07am UTC](https://discuss.elastic.co/t/versioning-the-index-mapping/23644/2 "2015-05-19T03:07:44Z")

</div>

Hi

Isn't this a job for source control? In there you should have a releases branch and the latest release should contain your mapping file. I don't think using ES as a poor man's source control system is a good idea. If ES dies and you need to do a complete rebuild then you will need to get the scripts from somewhere and source control is that place.

Allan Mitchell

> On 18 May 2015, at 22:32, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:
> 
> Hello everyone,  
> Is there a way to create a mapping in Elasticsearch (version 1.4.2) with a version number. So that next time, we can verify if mapping needs to be updated using PUT request in Elasticsearch or not based on version number?
> 
> For example,  
> I create a mapping A within an index and version it A.x. During next release, I perform a check to determine the version of existing index mapping and accordingly perform an update using PUT API of index mapping.
> 
> Please suggest.
> 
> ## Regards, Sagar Shah
> 
> ## Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mariam](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mariam](https://discuss.elastic.co/u/mariam)\
**Post date:** [May 28, 2015, 9:16am UTC](https://discuss.elastic.co/t/versioning-the-index-mapping/23644/3 "2015-05-28T09:16:44Z")

</div>

Hi,  
sorry my english is very bad  
I have a problem,  
I made a dashboard with Kibana 4 with data from two tables, but when I  
click on a particular visualization from a table, Kibana not display the  
exact number of data to another visualization done with data in another  
table  
cordially,

2015-05-19 5:07 GMT+02:00 Allan Mitchell [casfanallan@gmail.com](mailto:casfanallan@gmail.com):

> Hi
> 
> Isn't this a job for source control? In there you should have a releases  
> branch and the latest release should contain your mapping file. I don't  
> think using ES as a poor man's source control system is a good idea. If ES  
> dies and you need to do a complete rebuild then you will need to get the  
> scripts from somewhere and source control is that place.
> 
> Allan Mitchell
> 
> On 18 May 2015, at 22:32, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:
> 
> Hello everyone,  
> Is there a way to create a mapping in Elasticsearch (version 1.4.2) with  
> a version number. So that next time, we can verify if mapping needs to be  
> updated using PUT request in Elasticsearch or not based on version number?
> 
> For example,  
> I create a mapping A within an index and version it A.x. During next  
> release, I perform a check to determine the version of existing index  
> mapping and accordingly perform an update using PUT API of index mapping.
> 
> Please suggest.
> 
> Regards,  
> Sagar Shah
> 
> ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPRdzkNqcZqLQZV9WtCr0JuyT2Fp3kqXvW80eXAormSO%2BJdLNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPRdzkNqcZqLQZV9WtCr0JuyT2Fp3kqXvW80eXAormSO%2BJdLNw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:11am UTC](https://discuss.elastic.co/t/versioning-the-index-mapping/23644/4 "2017-07-06T00:11:21Z")

</div>


