[Koha-patches] [PATCH 88/92] Bug Fix : 3689

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Tue Dec 22 01:21:21 CET 2009


Disabling Query_AutoTruncate for NoZebra searches

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
 C4/Search.pm |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index b6e5cfa..322db54 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1007,9 +1007,10 @@ sub buildQuery {
 
     # no stemming/weight/fuzzy in NoZebra
     if ( C4::Context->preference("NoZebra") ) {
-        $stemming      = 0;
-        $weight_fields = 0;
-        $fuzzy_enabled = 0;
+        $stemming         = 0;
+        $weight_fields    = 0;
+        $fuzzy_enabled    = 0;
+    	$auto_truncation  = 0;
     }
 
     my $query        = $operands[0];
-- 
1.6.3.3




More information about the Koha-patches mailing list