Forum: Ferret Fuzzy searching using act_as_ferret

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ecf15b0bccba46fe1285f392b3ad0dde?d=identicon&s=25 Tom Styles (tomstyles)
on 2006-03-17 10:21
Hello,

My Ferret integration has gone quite well. I'm now returning all the
results I need from two models using "id_multi_search" and combining the
results in the view using a couple of partials.

Is there any way that I can turn on fuzzy searching?

Would fuzzy searching pick up basic spelling mistakes such as "Bnadit"
instead of "Bandit" my experience with search technology is quite
limited.

Cheers
Tom, Nottingham UK
E71a422612298e95fa7c21212594c2d0?d=identicon&s=25 Jean-Etienne Durand (Guest)
on 2006-03-17 10:32
(Received via mailing list)
Tom,

It depends on how you build your query.
Textually, the syntax is: +(body:word~0.5) if you want to search for
'word' in field 'body'.

A more advanced way would to parse your query and then build manually
your ferret query. See
http://ferret.davebalmain.com/api/classes/Ferret/S...
for more help.

Jean-Etienne
This topic is locked and can not be replied to.