fixing NOT queries
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / Driver / Pg / fts.pm
index 43e0ea6..deaff9e 100644 (file)
@@ -17,7 +17,7 @@
                my $newterm = join('&', $self->words);
 
                if (@{$self->nots}) {
-                       $newterm = '('.$newterm.')&('. join('|', $self->nots) . ')';
+                       $newterm = '('.$newterm.')&!('. join('|', $self->nots) . ')';
                }
 
                $log->debug("Compiled term is [$newterm]", DEBUG);