SQL Server vs MySQL: CONTAINS(*,'FORMSOF(THESAURUS,word)')

此生再无相见时 提交于 2019-12-22 04:58:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4727433/sql-server-vs-mysql-contains-formsofthesaurus-word

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!