V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  bushiwodeQQ  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2017-05-27 13:35:19 +08:00
回复了 toono 创建的主题 Flask 请问 Flask-WhooshAlchemy 支持中文检索是有问题吗?
调用 whoosh_search 方法查 Post.query.whoosh_search('mus').all()
查到的结果:
E:Python27libsite-packagessqlalchemysqlelements.py:4230: SAWarning: Textual SQL expression 'null' should be explicitly declared as text('null') (this warning may be suppressed after 10 occurrences)
{"expr": util.ellipses_string(element)})
[]
我查的字段 searchable = ['title'];
我数据库 title 里面确实有 mus 这个词的
@revol 作者大大求指点
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   898 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.