Bug Fixing : Search Broken with stemming

Stemming can't use exceptions
Removing exceptions management
This commit is contained in:
Henri-Damien LAURENT 2009-10-16 23:59:24 +02:00
parent 9a43a47755
commit 2d4432569e

View 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) {