Here how i do highlighting
in my model :
acts_as_ferret :fields => { :content => {:store => :yes}, :title =>
{:store => :yes}}
results = list.find_by_contents("QUERY~7", options)
In my view :
<% results[0].highlight("QUERY~7", :field => :content,... ) -%>
Is there a way to make it faster without changing the tolerance factor ?
( ~7 in this example )
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk