SQL Server vs MySQL: CONTAINS(*,'FORMSOF(THESA

2019-04-27 03:35发布

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条回答
我想做一个坏孩纸
2楼-- · 2019-04-27 03:50

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.

查看更多
登录 后发表回答