diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/EntityRedactionService.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/EntityRedactionService.java index 07a0a37a..4b67065f 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/EntityRedactionService.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/EntityRedactionService.java @@ -66,7 +66,7 @@ public class EntityRedactionService { Map> 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); }