where to edit mysql fulltext stopword lists?

后端 未结 1 635
离开以前
离开以前 2021-01-28 09:23

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,

1条回答
  •  梦如初夏
    2021-01-28 10:00

    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

    0 讨论(0)
提交回复
热议问题