Bug Fixing : Search Broken with stemming
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 16 Oct 2009 21:59:24 +0000 (23:59 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 16 Oct 2009 21:59:24 +0000 (23:59 +0200)
Stemming can't use exceptions
Removing exceptions management

C4/Search.pm

index c47b130..33c79fc 100644 (file)
@@ -710,13 +710,14 @@ sub _build_stemmed_operand {
                                                encoding => "UTF-8" );
 
 # FIXME: these should be stored in the db so the librarian can modify the behavior
-    $stemmer->add_exceptions(
-        {
-            'and' => 'and',
-            'or'  => 'or',
-            'not' => 'not',
-        }
-    );
+# Lingua::Stem can't add exceptions
+#    $stemmer->add_exceptions(
+#        {
+#            'and' => 'and',
+#            'or'  => 'or',
+#            'not' => 'not',
+#        }
+#    );
     my @words = split( / /, $operand );
     my @stems = $stemmer->stem(\@words);
     for my $stem (@stems) {