RED-7384: Fixed migration problem for a specific file

This commit is contained in:
Dominique Eifländer 2024-03-12 09:34:39 +01:00
parent 812946c81d
commit d531f1be7f
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()