From 1f25b5077a7dfdfd97384cf2f1510463aba8c440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olov=20Ylinenp=C3=A4=C3=A4?= Date: Tue, 17 Dec 2024 13:52:37 +0100 Subject: [PATCH] feat(search2): Make AND, OR, NOT case sensitive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As in Libris Webbsök. Simple solution for "to be or not to be". TODO? Also allow && and || as operators? --- whelk-core/src/main/groovy/whelk/search2/parse/Lex.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/whelk-core/src/main/groovy/whelk/search2/parse/Lex.java b/whelk-core/src/main/groovy/whelk/search2/parse/Lex.java index 8b7eee5192..d9ea32e5ff 100644 --- a/whelk-core/src/main/groovy/whelk/search2/parse/Lex.java +++ b/whelk-core/src/main/groovy/whelk/search2/parse/Lex.java @@ -161,9 +161,6 @@ else if (c == '\\') { // char escaping ... // These words (when not quoted) are keywords switch (symbolValue.toString()) { - case "and": - case "or": - case "not": case "AND": case "OR": case "NOT":