utf 8 - Zend Search Lucene and Accented Characters -


I'm trying to find a way out of this scenario in Zend_Search_Lucene:

We Say we have a user and his name is Ika (note special character). If I am searching for the Ichi index (without the special derivative of me), then I hope that returning to the result.

Is there something special to do when doing sequencing or searching? I have read the solution on generalizing data before indexing rather than all the special characters with normalized characters, but I do not want to go that route.

  function normal ($ string)  

{$ A = 'ÀÁÂÃƒÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ ßßáâÛäååååÛÛîîîîîîÛÛ õõõõõûûûûþÿŔŕ'; $ B = 'AAAAAAAAAAAIIdNUUUUUUUUUUUUUUSAAAAAAAAAEIEINDNUUUUUUUBRR'; $ String = utf8_decode ($ string); $ String = strtr ($ string, utf8_decode ($ a), $ b); $ String = Stroglager ($ string); Return utf8_encode ($ string); } $ PassToIndexer = General ("Ica");

Try to use these functions when creating an index, store the actual value without indexing =) hope that it helps, I really say no other way is.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -