How to add synonym dictionary to mysql FULLTEXT search?

人盡茶涼 提交于 2019-12-11 01:16:15

问题


That way if I search for the term "mens" the term "gentlemen" will match.

I tried this:

SELECT * 
FROM cart_product
WHERE MATCH (
product_name, product_description, product_brand, metal_type, primary_stone, product_type, product_type_sub, product_series, primary_stone_sub
)
AGAINST (
'THESAURUS "english" EXPAND SYNONYM TERM OF "gentlemen"'
)

But that doesn't seem to work. Is this wrong? is there somethig else I have to do with this?

来源:https://stackoverflow.com/questions/3265396/how-to-add-synonym-dictionary-to-mysql-fulltext-search

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