From 5f05fb19d0b27b33de2309540d1690ad072ea8d0 Mon Sep 17 00:00:00 2001 From: kados Date: Wed, 9 May 2007 19:39:02 +0000 Subject: [PATCH] Fix for bug 1249: Searching for a title beginning with And, Or, or Not results in an error --- C4/Search.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Search.pm b/C4/Search.pm index 78901e687f..03edac1e1f 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -558,6 +558,7 @@ sub buildQuery { my $weight_fields = C4::Context->parameters("WeightFields") || 0; if ( $operands[$i] ) { + $operand =~ s/^(and|or|not)//i; # STEMMING FIXME: need to refine the field weighting so stemmed operands don't disrupt the query ranking if ($stemming) { -- 2.39.5