Bug Fix : 3689
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 7 Oct 2009 13:49:02 +0000 (15:49 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 7 Oct 2009 14:13:53 +0000 (16:13 +0200)
Disabling Query_AutoTruncate for NoZebra searches

C4/Search.pm

index 809bc87..74539f6 100644 (file)
@@ -996,9 +996,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];