From: Kathy Lussier Date: Wed, 1 Aug 2012 01:50:03 +0000 (-0400) Subject: Remove quotes from "does not contain" search. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6fe5675acf1c2e4b52d41150088a02534337938c;p=working%2FEvergreen.git Remove quotes from "does not contain" search. The "does not contain" search operator surrounded the excluded terms in quotes. In systems with multiple keyword indexes, adding these quotes led to many first-page results that contained the excluded terms. This will remove those quotes from the search. Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index 5d40319716..c372f79709 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -35,8 +35,6 @@ sub _prepare_biblio_search_basics { # the weird things Real Users will surely type in. $contains = "" unless defined $contains; # silence warning if ($contains eq 'nocontains') { - $query =~ s/"//g; - $query = ('"' . $query . '"') if index $query, ' '; $query = '-' . $query; } elsif ($contains eq 'phrase') { $query =~ s/"//g;