MySQL Variables ft_min_word_len 数据库 参数变量解释及正确配置使用
本站中文解释
MySQL的ft_min_word_len参数控制取决于文本搜索的搜索词的最小长度。当搜索词的长度小于此值时,它将不会被搜索。
ft_min_word_len变量的默认值是4,表示单词长度必须大于4个字符才会被搜索。此外,用户可以设置ft_min_word_len值在4到84之间,或是设置为0表示不限制最小字符数。
要设置ft_min_word_len变量,用户可以使用以下命令:
SET GLOBAL ft_min_word_len=value;
其中value指的是要设置的值,可以是4到84的一个数字,也可以是0表示不限制最小字符数。
官方英文解释
ft_min_word_len
| Command-Line Format | --ft-min-word-len=# |
|---|---|
| System Variable | ft_min_word_len |
| Scope | Global |
| Dynamic | No |
| Type | Integer |
| Default Value | 4 |
| Minimum Value | 1 |
| Maximum Value | 82 |
The minimum length of the word to be included in a
MyISAM FULLTEXT index.
Note
FULLTEXT indexes on
MyISAM tables must be rebuilt after
changing this variable. Use REPAIR TABLE.
tbl_name QUICK