where to edit mysql fulltext stopword lists?

廉价感情. 提交于 2019-12-31 07:16:28

问题


i saw the fulltext stopword lists of mysql is in english. That's a bit weird considering mysql is used all over the world...

Anyway i lowered the ft_min_word_len to 3, so i need to add the common words in my language to this lists.

Someone can tell me where i can find it?

Thanks


回答1:


This should work:

To override the default stopword list, set the ft_stopword_file system variable. (See Section 5.1.4, “Server System Variables”.) The variable value should be the path name of the file containing the stopword list, or the empty string to disable stopword filtering. The server looks for the file in the data directory unless an absolute path name is given to specify a different directory. After changing the value of this variable or the contents of the stopword file, restart the server and rebuild your FULLTEXT indexes.

http://dev.mysql.com/doc/refman/5.5/en/fulltext-fine-tuning.html



来源:https://stackoverflow.com/questions/4685252/where-to-edit-mysql-fulltext-stopword-lists

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