search for: fuzzy_word_search

Displaying 1 result from an estimated 1 matches for "fuzzy_word_search".

2006 Aug 08
1
acts_as_ferret to search partial phrases and fuzzy
...ollowing (pseudo code): def search @query = params[:query] || '''' unless @query.blank? @results = Content.find_by_contents @query if @results.empty? @results = Content.partial_word_search @query if @results.empty? @results = Content.fuzzy_word_search @query end end end end I realise I could probably achieve something like this by changing http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails to meet my needs, but I quite like the indexing elegance provided with AAF, and don''t want to have to rein...