SQL Server 与 MySQL:CONTAINS(*,'FORMSOF(THESAURUS,word)')
我很震惊。
我花了 3-4 天的时间弄清楚如何在 mysql 中实现词干提取(和同义词搜索),当我在 SQL Server 中看到查询非常简单时:
Select * from tab where CONTAINS(*,'FORMSOF(THESAURUS,word)')
Is possibile on MySql does not like that?
I am shocked.
I spent past 3-4 days figuring out how I could implement stemming (and synonyms searches) in mysql when I see in SQL Server the query is incredibly easly:
Select * from tab where CONTAINS(*,'FORMSOF(THESAURUS,word)')
Is possibile on MySql there isn't anything like that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,
MySQL
不支持与用户提供的同义词库进行匹配。您可以使用外部
FULLTEXT
引擎,例如 Sphinx,它支持 形态规则,内置多个词干分析器和同义词库,并允许可插入。No,
MySQL
does not support matching against a user-provided thesaurus.You can use an external
FULLTEXT
engine like Sphinx which supports morphology rules, has several stemmers and thesauri built in and allows pluggable ones.