How to reset stop words in MYSQL?

前端 未结 5 2005
余生分开走
余生分开走 2020-12-10 16:36

I want to reset stop word list in mysql for FULLTEXT search. I have installed WAMP Server in my system which have phpmyadmin to access mysql. But I dont know how to reset st

5条回答
  •  不知归路
    2020-12-10 16:41

    You can find a list of stop words to use here: https://dev.mysql.com/doc/refman/5.6/en/fulltext-stopwords.html. I saved this list to a file and referenced it from the MySQL config file (e.g. ft_stopword_file='path/to/stopword_file.txt').

    I removed "it" and "us" from the stopword list because they mean "Information Technology" and "United States" in my problem domain.

    Unfortunately, every time you change the stopword list you have to restart MYSQL and rebuild the full-text index's.

提交回复
热议问题