开发者

Doctrine Searchable with non-ASCII characters

I have text in T开发者_JAVA技巧urkish language: "selam günaydın". Doctrine searchable converts it to keywords in table: -selam -guenaydin

So "guenaydin" was saved in table as keyword "günaydın" so when somebody writes in search "günaydın" he gets nothing - what can I do?


Solution:

You should first use the analyze() method of the Doctrine_Search_Analyzer_Standard class, in order to convert the incoming search string to the format of the index table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜