【问题标题】:mysql match/againstmysql匹配/反对
【发布时间】:2011-03-20 04:48:31
【问题描述】:

我正在使用此搜索

-> 匹配 (c1, c2) 与 (">dg*" in boolean mode);

我得到了这份清单

1 dgas

2 dgica

3 dgicb

4 dgii

5 位

6 dgly

7 dgc

8 dgse

这似乎是合理的。

问题是我没有得到“dgl”,我知道它在 c1 列中。

所以我得到“dgly”但不是“dgl”。

我觉得这很令人困惑,如果有任何想法,我将不胜感激。谢谢。

【问题讨论】:

    标签: mysql full-text-indexing


    【解决方案1】:

    默认情况下,MySQL 全文索引将忽略短于四个字符的单词。

    这可以通过将ft_min_word_len 设置为较小的数字然后重建全文索引在服务器级别进行更改。

    Here's more information in the manual about fine-tuning fulltext searches.

    【讨论】:

      猜你喜欢
      • 2015-04-30
      • 1970-01-01
      • 2021-06-26
      • 1970-01-01
      • 1970-01-01
      • 2012-03-13
      • 2015-01-21
      • 2011-09-12
      • 1970-01-01
      相关资源
      最近更新 更多