Merge branch 'RED-7384-4.1' into 'master'

RED-7384: Fixed migration problem for a specific file

Closes RED-7384

See merge request redactmanager/redaction-service!315
This commit is contained in:
Dominique Eifländer 2024-03-12 09:48:40 +01:00
commit e79bcbbc10
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()