From 0c3683f48d524bfc3b6091c189f0273b6f8012bf Mon Sep 17 00:00:00 2001 From: Liam Whalen Date: Wed, 13 Nov 2013 17:41:43 -0800 Subject: [PATCH] Test case to show the problems of searching with three ISBNs Signed-off-by: Liam Whalen --- .../perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm | 2 +- Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = ''; -- 2.11.0