|
Re: Using custom stem analyzer giving mongrel errors: msg#00067lang.ruby.ferret.general
Well after a few hours of playing with it, I finally gave up and decided to try a different stem analyzer from another post. Specifically: require 'rubygems' require 'ferret' class StemmedAnalyzer < Ferret::Analysis::Analyzer include Ferret::Analysis def initialize(stop_words = ENGLISH_STOP_WORDS) @stop_words = stop_words end def token_stream(field, str) StemFilter.new(StopFilter.new(LowerCaseFilter.new(StandardTokenizer.new(str)), @stop_words)) end end The error seems to have disappeared now. Very strange indeed. -- Posted via http://www.ruby-forum.com/. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Using custom stem analyzer giving mongrel errors: 00067, Raymond O'connor |
|---|---|
| Next by Date: | Re: QueryParser Exception Handling Problem: 00067, Sam |
| Previous by Thread: | Re: Using custom stem analyzer giving mongrel errorsi: 00067, Raymond O'connor |
| Next by Thread: | Re: Using custom stem analyzer giving mongrel errors: 00067, Jens Kraemer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |