Skip to content
Snippets Groups Projects
Commit 7b4b7bfc authored by MZhu9's avatar MZhu9 Committed by David Diederich
Browse files

fix normalizedKind tag index bug

(cherry picked from commit 78bbd6af)
parent 7e9b5adc
No related branches found
No related tags found
1 merge request!624Cherry-pick 'fix normalizedKind tag index bug' into release/0.23
......@@ -395,9 +395,9 @@ public class IndexerServiceImpl implements IndexerService {
document.setLegal(storageRecord.getLegal());
if (storageRecord.getTags() == null) {
Map<String, String> constantTags = new HashMap<>();
constantTags.put(IndexerServiceImpl.NORMALIZATION_KIND_TAG_ATTRIBUTE_NAME, String.format("%s:%s:%s:%s", authority, source, type, versionParts[0]));
storageRecord.setTags(constantTags);
}
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.setCreateUser(storageRecord.getCreateUser());
document.setCreateTime(storageRecord.getCreateTime());
......
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