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 <klussier@masslnc.org>
# 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;