From 2d4432569e39e50e75b405685512db46be445b4c Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 16 Oct 2009 23:59:24 +0200 Subject: [PATCH] Bug Fixing : Search Broken with stemming Stemming can't use exceptions Removing exceptions management --- C4/Search.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index c47b130d1f..33c79fc982 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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) { -- 2.39.5