Displaying 1 result from an estimated 1 matches for "synonymanalyz".
Did you mean:
synonymanalyzer
2007 Jul 07
2
Extending/Modifying QueryParser
...9;'s an overview of what I''ve done so far:
My model classes in my rails app use acts_as_ferret with a call that
looks like:
acts_as_ferret(
:fields => [:body],
:store_class_name => true,
:ferret => {
:or_default => false,
:analyzer => SynonymAnalyzer.new(WordnetSynonymEngine.new, [])
}
)
I created a SynonymAnalyzer and SynonymTokenFilter:
class SynonymAnalyzer < Ferret::Analysis::Analyzer
include Ferret::Analysis
def initialize(synonym_engine, stop_words =
FULL_ENGLISH_STOP_WORDS, lower = true)
@synonym_engine = synon...