On Thu, Apr 19, 2007 at 03:49:48PM +0200, Chengcai He wrote:
> in environment.rb, i add the following code
> $KCODE = 'u'
> require 'jcode'
> ENV['LANG'] = 'en_US.utf8'
> require 'acts_as_ferret'
>
> in my model, topic.rb
> acts_as_ferret :fields => [:subject, :body], :analyzer =>
> Ferret::Analysis::RegExpAnalyzer.new(/./,false)
to make aaf use your analyzer, please format the call like this:
acts_as_ferret { :fields => [:subject, :body] },
{ :analyzer => Ferret::Analysis::RegExpAnalyzer.new(/./,false) }
I'm seriously thinking about an API change because people always mix
up the two hashes.
Jens
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk