Hi,

Le 1 sept. 06, à 17:09, David Balmain a écrit :
>> 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).
>
>
> Are you saying the highlight doesn't respect multi-byte characters? If
> so, could you give an example? The highlighter uses the byte
> boundaries returned by the analyzer during indexing so I can't see any
> reason multi-byte characters wouldn't be respected.

No, it was a question, I was wondering wether it respected the 
multibyte.
It's a good news it can handle unicode.

> Also, it's quite a bit more advanced then your version (and the
> version in Lucene contrib for that matter). It highlights only the
> terms that match the query. So if you search for the phrase "red
> truck" the terms "red" and "truck" will only be highlighted if they
> appear together. If you search for "red truck"~1 then the phrase "red
> fire truck" will be highlighted. It also uses a pretty clever
> algorithm to find the excerpts with the most matching information.
> It's still quite experimental though so I need people to try it out
> and send in their suggestions.

Ok, I'll try. Till now I was using my own ruby hilighter.

Jean-Christophe Michel
--
Symétrie, édition de musique et services multimédia
30 rue Jean-Baptiste Say
69001 LYON (FRANCE)
tél +33 (0)478 29 52 14
fax +33 (0)478 30 01 11
web www.symetrie.com

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to