Skip to content
Snippets Groups Projects
Commit 9c459100 authored by MZhu9's avatar MZhu9
Browse files

fix normalizedKind tag index bug

parent 78bbd6af
No related branches found
No related tags found
1 merge request!621fix normalizedKind tag index bug
Pipeline #213860 failed
...@@ -394,8 +394,7 @@ public class IndexerServiceImpl implements IndexerService { ...@@ -394,8 +394,7 @@ public class IndexerServiceImpl implements IndexerService {
document.setAcl(storageRecord.getAcl()); document.setAcl(storageRecord.getAcl());
document.setLegal(storageRecord.getLegal()); document.setLegal(storageRecord.getLegal());
if (storageRecord.getTags() == null) { if (storageRecord.getTags() == null) {
Map<String, String> constantTags = new HashMap<>(); storageRecord.setTags(new HashMap<>());
storageRecord.setTags(constantTags);
} }
storageRecord.getTags().put(IndexerServiceImpl.NORMALIZATION_KIND_TAG_ATTRIBUTE_NAME, String.format("%s:%s:%s:%s", authority, source, type, versionParts[0])); storageRecord.getTags().put(IndexerServiceImpl.NORMALIZATION_KIND_TAG_ATTRIBUTE_NAME, String.format("%s:%s:%s:%s", authority, source, type, versionParts[0]));
document.setTags(storageRecord.getTags()); document.setTags(storageRecord.getTags());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment