Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Sep 25, 2024
1 parent 348352a commit fa39345
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ boolean newIndexHasSyntheticSourceUsage(
tmpIndexMetadata.settings(finalResolvedSettings);
// Create MapperService just to extract keyword dimension fields:
try (var mapperService = mapperServiceFactory.apply(tmpIndexMetadata.build())) {
// combinedTemplateMappings can be null when creating system indices
if (combinedTemplateMappings == null || combinedTemplateMappings.isEmpty()) {
// this can happen when creating a normal index that doesn't match any template and without mapping.
combinedTemplateMappings = List.of(new CompressedXContent("{}"));
Expand Down

0 comments on commit fa39345

Please sign in to comment.