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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -