Forum: Ferret getting fuzzy search to work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E51640ebc75a902eefb2d7bc29976ca6?d=identicon&s=25 Andrew Kaspick (akaspick)
on 2007-03-24 06:35

Forgive my ignorance if this has been covered.  I searched through the
archives and didn't find anything.

All the blogs, tutorials, documentation I'm reading on acts_as_ferret
say that to use fuzzy searching, I simply append a ~ to my query.

I'm using Ferret 0.11.3 and the newest (should be) acts_as_ferret
plugin.  I can only get perfect matches to show up using a query such

Blog.find_by_contents("test"), which returns results just fine.

as soon as I add the ~

Blog.find_by_contents("test~"), I get nothing.

If I use wildcard syntax...

Blog.find_by_contents("*test*"), I get results again.

I could be interpreting what I'm reading wrong or I have something
misconfigured, but I'm confused by this.

Can somebody point me in the right direction?

Dc0606fdf7be2aaaf2c35b7403075f36?d=identicon&s=25 Jin (Guest)
on 2007-03-26 06:56
seems we got the same question
i'l keep my eyes on this post
This topic is locked and can not be replied to.