diff --git a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl index 9fe1798e..126ee375 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl +++ b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl @@ -362,7 +362,7 @@ rule "17: Redact line after contact information keywords" "Email:", "e-mail:", "E-mail address:") - $section: SectionNode(excludesTables, containsString($contactKeyword)) + $section: SectionNode(containsString($contactKeyword)) then entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section) .forEach(contactEntity -> { @@ -627,7 +627,7 @@ rule "remove Entity of type RECOMMENDATION when contained by FALSE_RECOMMENDATIO end rule "remove Entity of type RECOMMENDATION when contained by ENTITY" - salience 64 + salience 256 when $entity: RedactionEntity($type: type, entityType == EntityType.ENTITY) $recommendation: RedactionEntity(containedBy($entity), type == $type, entityType == EntityType.RECOMMENDATION, !resized, !skipRemoveEntitiesContainedInLarger)