RED-8610: Dictionary remove on dossier level should be displayed as skipped
This commit is contained in:
parent
7303a7579b
commit
50e137575d
@ -25,7 +25,8 @@ public final class MatchedRule implements Comparable<MatchedRule> {
|
|||||||
public static final RuleType FINAL_TYPE = RuleType.fromString("FINAL");
|
public static final RuleType FINAL_TYPE = RuleType.fromString("FINAL");
|
||||||
public static final RuleType ELIMINATION_RULE_TYPE = RuleType.fromString("X");
|
public static final RuleType ELIMINATION_RULE_TYPE = RuleType.fromString("X");
|
||||||
public static final RuleType IMPORTED_TYPE = RuleType.fromString("IMP");
|
public static final RuleType IMPORTED_TYPE = RuleType.fromString("IMP");
|
||||||
private static final List<RuleType> RULE_TYPE_PRIORITIES = List.of(FINAL_TYPE, ELIMINATION_RULE_TYPE, IMPORTED_TYPE);
|
public static final RuleType DICTIONARY_TYPE = RuleType.fromString("DICT");
|
||||||
|
private static final List<RuleType> RULE_TYPE_PRIORITIES = List.of(FINAL_TYPE, ELIMINATION_RULE_TYPE, IMPORTED_TYPE, DICTIONARY_TYPE);
|
||||||
|
|
||||||
RuleIdentifier ruleIdentifier;
|
RuleIdentifier ruleIdentifier;
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
|
|||||||
@ -56,7 +56,7 @@ public class DictionarySearchService {
|
|||||||
SemanticNode node,
|
SemanticNode node,
|
||||||
boolean isDossierDictionaryEntry) {
|
boolean isDossierDictionaryEntry) {
|
||||||
|
|
||||||
Set<Engine> engines = Set.of(Engine.DICTIONARY);
|
Set<Engine> engines = isDossierDictionaryEntry ? Set.of(Engine.DICTIONARY, Engine.DOSSIER_DICTIONARY) : Set.of(Engine.DICTIONARY);
|
||||||
EntityCreationService entityCreationService = new EntityCreationService(entityEnrichmentService);
|
EntityCreationService entityCreationService = new EntityCreationService(entityEnrichmentService);
|
||||||
searchImplementation.getBoundaries(node.getTextBlock(), node.getTextRange())
|
searchImplementation.getBoundaries(node.getTextBlock(), node.getTextRange())
|
||||||
.stream()
|
.stream()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user