Update mapping

Is the way to update mapping of large index as follows

Create empty index with new mapping
Copy old data into new index
Alias new index to previous

If so, what are recommended tools?

Ideally there would be a user interface for IT people to use?

Thanks

--
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/1691b5c9-3aa5-4d8b-9149-e2b2dff56817%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes it is. There are unfortunately no APIs yet to reindex content from an
index to a new index. There is an issue open for that[1] which is currently
blocked by the fact that we need a better infrastructure to handle
long-running tasks in a cluster.

However, it is still possible to reindex externally by using the
scan/scroll and bulk-update APIs. Some our our client libraries even
provide easy-to-use helper methods to do so. For instance see the
elasticsearch.helpers.reindex[2] helper from our python client.

[1] Reindex from _source by document ID or Query · Issue #492 · elastic/elasticsearch · GitHub
[2]
Helpers — Python Elasticsearch client 8.11.0 documentation

On Fri, Oct 17, 2014 at 9:54 AM, eunever32@gmail.com wrote:

Is the way to update mapping of large index as follows

Create empty index with new mapping
Copy old data into new index
Alias new index to previous

If so, what are recommended tools?

Ideally there would be a user interface for IT people to use?

Thanks

--
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/1691b5c9-3aa5-4d8b-9149-e2b2dff56817%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j4tTpMX9gQCG7j1cNXwi4b-udsF0SUrQXMduf3OU3uhTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Scan\scroll is indeed the way to go. The only thing I can add is that you
should take the opportunity to run sanity checks on the documents like
filtering out fields that were in the old index but shouldn't be copied to
the new one.
On Oct 19, 2014 5:24 PM, "Adrien Grand" adrien.grand@elasticsearch.com
wrote:

Yes it is. There are unfortunately no APIs yet to reindex content from an
index to a new index. There is an issue open for that[1] which is currently
blocked by the fact that we need a better infrastructure to handle
long-running tasks in a cluster.

However, it is still possible to reindex externally by using the
scan/scroll and bulk-update APIs. Some our our client libraries even
provide easy-to-use helper methods to do so. For instance see the
elasticsearch.helpers.reindex[2] helper from our python client.

[1] Reindex from _source by document ID or Query · Issue #492 · elastic/elasticsearch · GitHub
[2]
Helpers — Python Elasticsearch client 8.11.0 documentation

On Fri, Oct 17, 2014 at 9:54 AM, eunever32@gmail.com wrote:

Is the way to update mapping of large index as follows

Create empty index with new mapping
Copy old data into new index
Alias new index to previous

If so, what are recommended tools?

Ideally there would be a user interface for IT people to use?

Thanks

--
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/1691b5c9-3aa5-4d8b-9149-e2b2dff56817%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j4tTpMX9gQCG7j1cNXwi4b-udsF0SUrQXMduf3OU3uhTA%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4tTpMX9gQCG7j1cNXwi4b-udsF0SUrQXMduf3OU3uhTA%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAPmjWd0c_RWFGjnhNKC4k1%2Bwap8FLEYd0k9D0J4cyeXKRFZBTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.