Skip to content

Commit

Permalink
#709 Fix merge conflicts while backporting
Browse files Browse the repository at this point in the history
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
  • Loading branch information
goyamegh committed Dec 1, 2023
1 parent ad6b374 commit db2ee00
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,20 +290,6 @@ public void onResponse(GetMappingsResponse getMappingsResponse) {
}
}
}

// Traverse mappings and do copy with excluded type=alias properties
MappingsTraverser mappingsTraverser = new MappingsTraverser(mappingMetadata);
// Resulting mapping after filtering
Map<String, Object> filteredMapping = mappingsTraverser.traverseAndCopyWithFilter(appliedAliases);


// Construct filtered mappings and return them as result
Map<String, MappingMetadata> outIndexMappings = new HashMap<>();
Map<String, Object> root = Map.of(org.opensearch.index.mapper.MapperService.SINGLE_MAPPING_NAME, filteredMapping);
MappingMetadata outMappingMetadata = new MappingMetadata(org.opensearch.index.mapper.MapperService.SINGLE_MAPPING_NAME, root);
outIndexMappings.put(indexName, outMappingMetadata);

actionListener.onResponse(new GetIndexMappingsResponse(outIndexMappings));
}

// Traverse mappings and do copy with excluded type=alias properties
Expand Down

0 comments on commit db2ee00

Please sign in to comment.