We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aebb8e commit fd99a50Copy full SHA for fd99a50
server/src/main/java/org/elasticsearch/snapshots/RestoreService.java
@@ -1672,7 +1672,7 @@ private static IndexMetadata convertLegacyIndex(
1672
1673
try {
1674
Mapping mapping;
1675
- try (MapperService mapperService = indicesService.createIndexMapperService(convertedIndexMetadata)) {
+ try (MapperService mapperService = indicesService.createIndexMapperServiceForValidation(convertedIndexMetadata)) {
1676
// create and validate in-memory mapping
1677
mapperService.merge(convertedIndexMetadata, MapperService.MergeReason.MAPPING_RECOVERY);
1678
mapping = mapperService.documentMapper().mapping();
0 commit comments