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 -- Posted via http://www.ruby-forum.com/.
Jean-Etienne Durand
2006-Mar-17 09:30 UTC
[Ferret-talk] Fuzzy searching using act_as_ferret
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/Search/FuzzyQuery.html for more help. Jean-Etienne Tom Styles wrote:> 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 >