Displaying 1 result from an estimated 1 matches for "porterstemfilt".
Did you mean:
porterstemfilter
2006 Nov 13
1
Stemming, stop words, acts_as_ferret
...Stop words. Searches for "failing to instruct the jury" should come up
with hits on a search for "fail to instruct."
3. Case-insensitive.
What I tried was:
class StemmedAnalyzer < Ferret::Analysis::Analyzer
def token_stream(field, reader)
return
Ferret::Analysis::PorterStemFilter.new(Ferret::Analysis::LowerCaseTokenizer.
new(reader))
end
end
class Summary < ActiveRecord::Base
acts_as_ferret(:analyzer => StemmedAnalyzer.new)
But this doesn''t appear to give me either stemming or stopwords. It does
give me basic searching (searches for exact keywords wi...