Change search modifiers to be case-insensitive (#30865)

This commit is contained in:
Eugen Rochko 2024-06-27 23:34:34 +02:00 committed by Claire
parent 815680bd13
commit 2a5819e8bb

View file

@ -101,7 +101,7 @@ class SearchQueryTransformer < Parslet::Transform
end
rule(clause: subtree(:clause)) do
prefix = clause[:prefix][:term].to_s if clause[:prefix]
prefix = clause[:prefix][:term].to_s.downcase if clause[:prefix]
operator = clause[:operator]&.to_s
if clause[:prefix]