Hi all,
I have found the solution to my problem:
Here is my “old” code:
%header = ( wordcharacters => q{0123456789abcdefghijklmnopqrstuvwxyz} );
%highlight = ( show_words => 15, max_words => 50, occurrences => 5,
highlight_on => '<b>', highlight_off => '</b>');
$sho = new SWISH::PhraseHighlight( \%highlight, \%header );
And here the code that solved my problem (the difference is the
“wordcharacters”):
%header = ( wordcharacters => q{0123456789aÃ
äbcdeéèfghijklmnoöpqrstuüÃvwxyz} );
%highlight = ( show_words => 15, max_words => 50, occurrences => 5,
highlight_on => '<b>', highlight_off => '</b>');
$sho = new SWISH::PhraseHighlight( \%highlight, \%header );
Regards. Miche
_____
Da: users-bounces@lists.swish-e.org [mailto:users-bounces@lists.swish-e.org]
Per conto di Michelangelo Rezzonico
Inviato: lunedì, 6. ottobre 2008 16:49
A: users@lists.swish-e.org
Oggetto: [swish-e] PhraseHighlight and "special" characters
Hi all,
I use “SWISH::API” and all works perfectly.
Also the function PhraseHighlight() works ok.
I have only a problem if in the search word there is a “special” character:
è é ö é à.
For example if I search for the word “cioè”, the documents are found but in
the swishdescription I see the first lines of the documents and not the
lines where the search word is found.
Thanks for any help. Miche
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Fri Nov 21 04:37:42 2008