ignoring mysql fulltext stopwords in query

前端 未结 6 1028
星月不相逢
星月不相逢 2020-12-03 21:38

I\'m building a search for a site, which utilizes a fulltext search. The search itself works great, that\'s not my problem. I string together user provided keywords (MATCH..

6条回答
  •  孤街浪徒
    2020-12-03 22:16

    You can verify the keywords by comparing all stopwords. Here is the list of stopwords I've found out a solution to disable stopwords from fulltext. You just need to locate .cnf file and add this,

    ft_stopword_file = ""
    

    restart mysql engine and rebuild indexes;

    Hope this work

提交回复
热议问题