我正在使用此搜索
- >匹配(c1,c2)对(布尔模式下的“> dg *”);
我得到这个清单
1 dgas
2 dgica
3 dgicb
4 dgii
5 dgit
6 dgly
7 dgc
8 dgse
这看似合理。
问题是我没有得到“dgl”,我知道列c1中有。
所以我得到“丑陋”但不是“dgl”。
我发现这令人困惑,并会感激任何想法。感谢。
答案 0 :(得分:3)
默认情况下,MySQL全文索引会忽略短于四个字符的单词。
通过将ft_min_word_len
设置为较小的数字然后重建全文索引,可以在服务器级别更改此设置。
Here's more information in the manual about fine-tuning fulltext searches