Acts_as_ferret: case insensitive search

How can I index and search RoR model objects in a case insensitive
manner? In Ferret there is the LowerCaseFilter
(http://ferret.davebalmain.com/api/classes/Ferret/Analysis/LowerCaseFilter.html).
How can I utilize it and other filters with acts_as_ferret?

On 10/10/06, Lutz H. [email protected] wrote:

How can I index and search RoR model objects in a case insensitive
manner? In Ferret there is the LowerCaseFilter
(http://ferret.davebalmain.com/api/classes/Ferret/Analysis/LowerCaseFilter.html).
How can I utilize it and other filters with acts_as_ferret?

The LowercaseFilter is used by default so you don’t need to worry
about it. If you need to build your own analyzer you can specify it as
one of the ferret_options to acts_as_ferret. See the documentation
here:

http://projects.jkraemer.net/acts_as_ferret/rdoc/classes/FerretMixin/Acts/ARFerret/ClassMethods.html#M000006

To build your own analyzer see the documentation for
Ferret::Analysis::Analyzer. Look here:

http://ferret.davebalmain.com/api/

cheers,
Dave

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs