开发者

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

开发者 https://www.devze.com 2023-02-05 22:07 出处:网络
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:

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开发者_JS百科 CONTAINS(*,'FORMSOF(THESAURUS,word)')

Is possibile on MySql there isn't anything like that?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消