在哪里编辑mysql全文stopword列表? [英] where to edit mysql fulltext stopword lists?

查看:173
本文介绍了在哪里编辑mysql全文stopword列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到mysql的全文stopword列表是英文的。考虑到mysql在世界各地使用,这有点奇怪... ...

无论如何,我将ft_min_word_len降到3,所以我需要在我的语言中添加常见单词此列表。



有人可以告诉我在哪里可以找到它?

谢谢

解决方案

这可以起作用:
$ b


覆盖默认的停用词
列表中,设置ft_stopword_file系统
变量。 (请参见第5.1.4节服务器
系统变量。)变量值
应该是包含停用词列表的文件
的路径名,或
空字符串禁用停用词
过滤。服务器在数据目录中查找
文件,除非给出
绝对路径名来指定
不同的目录。在更改
这个变量的值或stopword文件的
内容后,重新启动
服务器并重建您的FULLTEXT
索引。
blockquote>

http://dev.mysql.com/doc/refman/5.5/en/fulltext-fine-tuning.html


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, so i need to add the common words in my language to this lists.

Someone can tell me where i can find it?

Thanks

解决方案

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

这篇关于在哪里编辑mysql全文stopword列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆