On Tue, Jul 03, 2007 at 07:02:26PM +0200, Landanger Pierre-Yves wrote:
> 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 )
I could imagine that doing the highlighting right inside
find_by_contents could speed up things quite a bit, maybe something like:
results = list.find_by_contents("QUERY~7", :highlight => { :field => :content })
I'd happily apply a patch for this, or just file it as a feature request
in aaf's Trac ;-)
Jens
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk