RED-6411 - remove false positives before calling EntitySearchUtils.addOrAddEngine()

This commit is contained in:
Thomas Beyer 2023-03-24 13:26:04 +01:00
parent 04343334d8
commit ddd4c42da7

View File

@ -300,7 +300,7 @@ public class EntityRedactionService {
!local,
model.isDossierDictionary(),
local ? Engine.RULE : Engine.DICTIONARY,
local ? EntityType.RECOMMENDATION : EntityType.ENTITY));
local ? EntityType.RECOMMENDATION : EntityType.ENTITY)).stream().filter(e -> !e.isFalsePositive()).collect(Collectors.toSet());
EntitySearchUtils.addOrAddEngine(found, entities);
}