RED-7384: Fixed migration problem for a specific file #315

Merged
dominique.eiflaender1 merged 1 commits from RED-7384-4.1 into master 2024-03-12 09:48:40 +01:00
2 changed files with 3 additions and 1 deletions

View File

@ -357,6 +357,7 @@ public final class MigrationEntity {
.annotationId(getNewId())
.updateDictionary(manualResizeRedaction.getUpdateDictionary())
.addToAllDossiers(manualResizeRedaction.isAddToAllDossiers())
.requestDate(manualResizeRedaction.getRequestDate())
.textAfter(manualResizeRedaction.getTextAfter())
.textBefore(manualResizeRedaction.getTextBefore())
.build();

View File

@ -185,7 +185,8 @@ public class EntityFindingUtility {
.toList(),
node.getPages()));
}
SearchImplementation searchImplementation = new SearchImplementation(entryValues, true);
SearchImplementation searchImplementation = new SearchImplementation(entryValues.stream().map(String::trim).collect(Collectors.toSet()), true);
return searchImplementation.getBoundaries(node.getTextBlock(), node.getTextRange())
.stream()