直接用中文说吧 要实现这个你需要自己把model中的string或者unicode的property 自己分词后再放到StringListProperty中。 对search的文字也需要做一个分词 然后用分词得到词去你保存分词的StringListProperty中查询
可以看看这里 http://www.until.cn/tag/分词 <http://www.until.cn/tag/%E5%88%86%E8%AF%8D> 页面上的搜索可以试试看 现在虽然可以做到,但是分词需要的词库是一个挺麻烦的问题。 gae上不允许放1m以上的文件,字库我是放在datastore里的。这样很容易就会出现DeadlineExceededError On Tue, Dec 2, 2008 at 7:36 PM, lookon <[email protected]> wrote: > > the code is here: > > http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/search/__init__.py?r=27 > > how to rewrite it to make it suitable for search Chinese(or other > language)? > > currently the SearchableModel can not search Chinese.... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
