On Thu, Apr 19, 2007 at 10:06:16AM +0200, Chengcai He wrote:
> How to add Chinese language full text searching function by using
> acts_as_ferret?
>
> RegExpAnalyzer.new(/./,false)
>
> this analyzer, i don't know how to use it!
> does it works like this:
>
> user searching---->acts_as_ferret---->ferret
basically, yes.
You can tell acts_as_ferret what analyzer to use with the :analyzer
option in the second options hash:
class MyModel
acts_as_ferret { :fields => { ... } }, { :analyzer => RegExpAnalyzer.new }
end
background info: the first options hash are acts_as_ferret options, and
the second options hash is passed through to Ferret's Index class.
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