Can InnoDB use a stopword file?

浪子不回头ぞ 提交于 2019-12-02 14:55:06

问题


With fulltext search for MyISAM, I know that I can specify a stopword file in my.cnf with the following:

ft_stopword_file = '/etc/stopword.txt'

Can the same also be done with fulltext search for InnoDB? I'd like to do something like the following if possible:

ft_stopword_file_innodb = '/etc/stopword.txt'

However, I haven't seen any documentation indicating that stopwords for InnoDB can be stored in a file.


回答1:


No, it cannot natively, hotwired, use a text file out of the box. That is, mysql as shipped. To achieve that you would need to write speciality UDF's which would be absurd considering the simple solution.

The information for custom Stop Words usage is available on this mysql manual page. It shows the rather limited default words out of the gates in the table INFORMATION_SCHEMA.INNODB_FT_DEFAULT_STOPWORD, how to reset to your own table, and the use of various system variables.



来源:https://stackoverflow.com/questions/37602202/can-innodb-use-a-stopword-file

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