From 6fe5675acf1c2e4b52d41150088a02534337938c Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 31 Jul 2012 21:50:03 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.11.0