MySQL Variables ft_max_word_len 数据库 参数变量解释及正确配置使用
网络编程
本站中文解释
ft_max_word_len 是MySQL Full Text 搜索引擎的一个参数变量, 它控制MySQL Full Text搜索引擎搜索的最长的单字的长度。站在全文搜索的角度,默认值也是最佳值,默认为20个Unicode码字符, 如果实际搜索中有需要搜索更长的单字,可以通过设置ft_max_word_len阈值来调整。
设置该参数的方法:
在MySQL命令行或者控制台中使用如下命令
SET GLOBAL ft_max_word_len = n;
其中n表示实际要设置的阈值,应该根据实际情况灵活设置。
官方英文解释
ft_max_word_len
| Command-Line Format | --ft-max-word-len=# |
|---|---|
| System Variable | ft_max_word_len |
| Scope | Global |
| Dynamic | No |
| Type | Integer |
| Default Value | 84 |
| Minimum Value | 10 |
| Maximum Value | 84 |
The maximum length of the word to be included in a
MyISAM FULLTEXT index.
FULLTEXT indexes on
MyISAM tables must be rebuilt after
changing this variable. Use REPAIR TABLE.
tbl_name QUICK
编辑:广州明生医药有限公司
标签:阈值,单字,参数,搜索引擎,站在