Skip to content

Commit

Permalink
feat(search2): Make AND, OR, NOT case sensitive
Browse files Browse the repository at this point in the history
As in Libris Webbsök.
Simple solution for "to be or not to be".

TODO? Also allow && and || as operators?
  • Loading branch information
olovy committed Dec 17, 2024
1 parent ea1b7b9 commit 1f25b50
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions whelk-core/src/main/groovy/whelk/search2/parse/Lex.java
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 1f25b50

Please sign in to comment.