Hi there,
I'd like to be able to tune the results of a Fuzzy search in a rails
application. I’ve tried setting the following in my environment.rb file.
Ferret::Search::FuzzyQuery.default_min_similarity = 0.75
Ferret::Search::FuzzyQuery.default_prefix_length = 2
When I go into the console, I can see those values as the default
but when I run a search like Post.find_by_contents(‘word~’) I always get
the same results, no matter how I set the above variables. I can say
Post.find_by_contents(‘word~0.75’) and Post.find_by_contents(‘word~0.5’)
and get different results.
Any help is appreciated.
Thanks,
Steve