diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/model/Section.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/model/Section.java index b05db9c0..47ac8d7f 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/model/Section.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/model/Section.java @@ -211,7 +211,7 @@ public class Section { while (matcher.find()) { String match = matcher.group(group); if (StringUtils.isNotBlank(match) && match.length() >= 3) { - Set found = findEntities(match.trim(), asType, false, true, ruleNumber, reason, legalBasis); + Set found = findEntities(match.trim(), asType, false, false, ruleNumber, reason, legalBasis); addNewerToEntities(found); localDictionaryAdds.computeIfAbsent(RECOMMENDATION_PREFIX + asType, (x) -> new HashSet<>()).add(match); } diff --git a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/allAuthors.drl b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/allAuthors.drl index 813fb1a9..73676d3d 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/allAuthors.drl +++ b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/allAuthors.drl @@ -43,6 +43,7 @@ rule "5: Do not redact Names and Addresses if no redaction Indicator is containe when Section(matchesType("vertebrate"), matchesType("published_information")) then + section.redactNot("CBI_author", 4, "Vertebrate and Published Information found"); section.redactNot("CBI_address", 5, "Vertebrate and Published Information found"); end