Versioning the Index Mapping


(Sagar Shah) #1

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/

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Allan Mitchell) #2

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 wrote:

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/

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/15a1d4ca-272d-45b4-b549-e983e56f4a8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Please update your bookmarks! We have moved to 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CDAC93A8-C41C-45B0-ADD0-638C39B88C8D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


(diawara) #3

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:

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 wrote:

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/

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.
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?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Please update your bookmarks! We have moved to 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
Please update your bookmarks! We have moved to 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPRdzkNqcZqLQZV9WtCr0JuyT2Fp3kqXvW80eXAormSO%2BJdLNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4