search for: get_index_path

Displaying 1 result from an estimated 1 matches for "get_index_path".

2006 Apr 20
1
Creating my own analyzer
...rret::Analysis::Analyzer def token_stream(field, string) if field == "code" return CodeTokenStream.new(string) else return Ferret::Analysis::Analyzer.new.token_stream(field,string) end end end and created an IndexWriter with it: Ferret::Index::IndexWriter.new(get_index_path, :create => true, :analyzer => DescriptionAnalyzer.new) get_index_path is a method to calculate the path to use. The problem is that my token_stream method is never called. I''m using ferret 0.9.1 from rubygems, ruby is...