Package org.elasticsearch.common.util
Class IndexFolderUpgrader
- java.lang.Object
-
- org.elasticsearch.common.util.IndexFolderUpgrader
-
public class IndexFolderUpgrader extends java.lang.Object
Renames index folders from {index.name} to {index.uuid}
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
upgradeIndicesIfNeeded(Settings settings, NodeEnvironment nodeEnv)
Upgrades all indices found undernodeEnv
.
-
-
-
Method Detail
-
upgradeIndicesIfNeeded
public static void upgradeIndicesIfNeeded(Settings settings, NodeEnvironment nodeEnv) throws java.io.IOException
Upgrades all indices found undernodeEnv
. Already upgraded indices are ignored.- Throws:
java.io.IOException
-
-