Compare commits

...
Author SHA1 Message Date
Dominique Eifländer 4d0c5eda57 test 1 2021-10-19 14:52:55 +02:00
Dominique Eifländer 2f66d223fd Added some logs 2021-10-19 14:38:03 +02:00
2 changed files with 3 additions and 0 deletions
@@ -146,9 +146,12 @@ public class EntitySearchUtils {
}
var existing = existingOptional.get();
log.info("existing: {}", existing);
log.info("found: {} ", found);
if(existing.getType().equals(found.getType())){
existing.getEngines().addAll(found.getEngines());
} else if (dictionary.getDictionaryRank(existing.getType()) <= dictionary.getDictionaryRank(found.getType())){
found.getEngines().addAll(existing.getEngines());
entities.remove(found);
entities.add(found);
}