From: Liam Whalen Date: Thu, 14 Nov 2013 01:41:43 +0000 (-0800) Subject: Test case to show the problems of searching with three ISBNs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0c3683f48d524bfc3b6091c189f0273b6f8012bf;p=working%2FEvergreen.git Test case to show the problems of searching with three ISBNs Signed-off-by: Liam Whalen --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm index e4e237c035..e46fe5837f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm @@ -1394,7 +1394,7 @@ sub tsquery { for my $atom (@{$self->query_atoms}) { if (ref($atom)) { - $self->{tsquery} .= "\n" . ${spc} x 3 . $atom->sql; + $self->{tsquery} .= "\n\n" . ${spc} x 3 . $atom->sql . "\n\n"; } else { $self->{tsquery} .= $atom x 2; } diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm index 1aa5c76c0a..6444175657 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm @@ -1202,7 +1202,7 @@ sub decompose { # $class_node->add_phrase( $atom ) if ($atom =~ s/^$required_re//o); $class_node->add_fts_atom( $atom, suffix => $truncate, prefix => $prefix, node => $class_node ); - $struct->joiner( '&' ); + $struct->joiner( '|' ); } local $last_type = '';