RED-1170: Do not use non dictionay hints vor local analysis

This commit is contained in:
Dominique Eifländer 2021-03-15 11:35:30 +01:00
parent 93dcd6b9f7
commit aac4d0437e

View File

@ -66,7 +66,7 @@ public class EntityRedactionService {
Map<Integer, Set<Entity>> hintsPerSectionNumber = new HashMap<>();
documentEntities.stream().forEach(entity -> {
if (dictionary.isHint(entity.getType())) {
if (dictionary.isHint(entity.getType()) && entity.isDictionaryEntry()) {
hintsPerSectionNumber.computeIfAbsent(entity.getSectionNumber(), (x) -> new HashSet<>())
.add(entity);
}