Hey ..

you mean where to place it in your directory structure?

I place them in lib/ but any place is fine.. maybe in model/ ..
just make sure it's in the load_path of rails. :-)

Ben

On 2007-09-07, at 4:21 PM, Guillaume Differenthink wrote:

> Hi,
>
> I m trying to use a custom analyser to add my french stop words... i m
> reading the tutorial at :
> http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
>
> My problem is that i ve no idea where to put my custom Analyser class
> like :
>
> class GermanStemmingAnalyzer < Ferret::Analysis::Analyzer
>   include Ferret::Analysis
>   def initialize(stop_words = FULL_GERMAN_STOP_WORDS)
>     @stop_words = stop_words
>   end
>   def token_stream(field, str)
>     StemFilter.new(StopFilter.new(LowerCaseFilter.new 
> (StandardTokenizer.new(str)),
> @stop_words), 'de')
>   end
> end
>
> Any clue ?
>
> Thanks a lot
>
> Guillaume.
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to