Hi Guys,
I found sfLucene dose not recognize those accent characters ( eg:
é ) , actually what I want to do is a accent insensitive search, like
query 'generale' or 'général' or 'genéral' for général.
I could search for example 'général' , but I found the highlights only
highlight normal character like [g]é[n]é[ral]
And I found that sometimes for those accent character will be encoded
as &xxxx in the result object, so I added a transform 'plainText' for
a index fields in search.yml :
function plainText($str){
return
trim(html_entity_decode(strip_tags($str),ENT_COMPAT,'UTF-8'));
}
But I found that it hardly returns result when the search query has
accent characters!
Anyone has the same problem before?
Thanks,
Snake
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---