search for: partial_word_search

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

2006 Aug 08
1
acts_as_ferret to search partial phrases and fuzzy
...hen using a * wildcard. Ideally, I am trying to acheive something similar to the following (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...