From e63bc94c788c37d466e22e83bc77d17714ae84e0 Mon Sep 17 00:00:00 2001 From: Michael Folz Date: Tue, 11 Jun 2024 11:23:29 +0200 Subject: [PATCH] #292 - OPS are not exhaustively searchable - add missing lowercase conversion in TerminologyService.matchesQuery --- .../feasibility_gui_backend/terminology/TerminologyService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/TerminologyService.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/TerminologyService.java index 60be57d5..50349049 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/TerminologyService.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/TerminologyService.java @@ -196,7 +196,7 @@ private boolean matchesQuery(String query, TerminologyEntry terminologyEntry) { Arrays.stream(terminologyEntry.getDisplay().toLowerCase().split(" ")) .anyMatch(var -> var.startsWith(query.toLowerCase())) || (terminologyEntry.getTermCodes().stream().anyMatch(termCode -> termCode.code() - .startsWith(query))); + .startsWith(query.toLowerCase()))); } public List getIntersection(String criteriaSetUrl, List contextTermCodeHashList) {