On Mon, Aug 28, 2006 at 02:11:26PM +0200, Jean-Christophe Michel wrote:
> Hi,
> 
> Le 28 août 06, à 12:22, Jens Kraemer a écrit :
> > in Ferret 0.10 there's a highlight method in the Searcher class. Maybe
> > that does what you want ?
> >
> > http://ferret.davebalmain.com/api/classes/Ferret/Search/ 
> > Searcher.html#M000223
> 
> Seems good, will be perfect if your truncate respects multi-byte chars.
> My ruby helper does it, see how it works on  
> http://symetrie.com/fr/search
> (it highlights only the first occurence of each word currently).
> 
> I cannot find the whole code in
> http://ferret.davebalmain.com/trac/browser/tags/REL-0.10.1/ext/ 
> r_search.c
> though to check this (and would I, I'm not sure I could check unicode  
> implementation in C :/)
> 
> I'll maybe wait for aaf to be updated for 0.10.1 before testing.

the current trunk of aaf is supposed to be 0.10.x compatible, feel free
to try it out.

But for now you'd have to create your own Searcher to use the
highlighting, because aaf doesn't give you access to a Searcher instance
to use. But this might be an interesting feature.

Jens

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to