This is just postscript correction for this thread, in case anyone else 
browses to it (like i did) and gets sent down the slightly wrong track.

If you're going to include the :analyzer option in your call to 
acts_as_ferret, then it needs to live inside another option hash called 
:ferret.  EG, some of the examples above say to do this:

acts_as_ferret :fields=> ['short_description'],
               :analyzer => Ferret::Analysis::MyAnalyzer.new

This won't work - it needs to be like this:

acts_as_ferret :fields=> ['short_description'],
               :ferret => {:analyzer => 
Ferret::Analysis::MyAnalyzer.new}

Thanks to Jens for setting me straight on this :)



-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to