Hi all,
I am trying to implement a search that will use the Stem Analyzer. I
added the Stem Anaylzer from the examples shown in another post
module Ferret::Analysis
class StemmingAnalyzer
def token_stream(field, text)
StemFilter.new(StandardTokenizer.new(text))
end
end
end
The problem with the Stem analyzer is that when I search for a term such
as ‘engineering’, it only matches whole words that fit the stem so the
only results I get back are documents where ‘engin’ is a whole word
(i.e. I don’t get back documents with ‘engineering’, ‘engineer’, or
‘engin*’). Am I using the Stem anaylzer correctly? Is there a better
way to get the desired behavior? Any help would be much appreciated!
Cheers!