Updating type from to – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when you try to update the type of an existing field in Elasticsearch. Elasticsearch does not allow changing the type of an existing field. To resolve this issue, you can either create a new index with the correct field type and reindex your data, or add a new field with a different name and the correct type to your existing index. Remember to update your application code to use the new field.

This guide will help you check for common problems that cause the log ” updating type from [{}] to [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index and shard.

Log Context

Log “updating type from [{}] to [{}]” classname is IndexShard.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :


                TranslogWriter.Type type = TranslogWriter.Type.fromString(settings.get(TranslogConfig.INDEX_TRANSLOG_FS_TYPE;
                if (type != translogConfig.getType()) {
                    logger.info("updating type from [{}] to [{}]"; translogConfig.getType(); type);

                final Translog.Durabilty durabilty = getFromSettings(logger; settings; translogConfig.getDurabilty());
                if (durabilty != translogConfig.getDurabilty()) {


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?