ignoring mysql fulltext stopwords in query

前端 未结 6 1008
星月不相逢
星月不相逢 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:30

    disable stopword for fulltext search in mysql using this steps

    1: open my.ini file in mysql

    2: place below two line after [mysqld] line in my.ini (search [mysqld] in file)

    ft_min_word_len=1
    ft_stopword_file=""
    

    3: restart your server

    4: repair your table using below command

     > repair table tablename;
    

    5: now your search is working....

提交回复
热议问题