【发布时间】:2011-09-01 19:15:52
【问题描述】:
我有一张叫myatts 的桌子:
- 它有大约 3,332,834 行数据。
- 我一般搜索“内容”栏目
- 我有大约 40 行内容 = Rat, D.D.
但是,当我对它进行全文搜索时,我没有得到任何结果。但如果我使用 LIKE,我确实会得到结果。
我想坚持全文,谁能帮我弄清楚为什么没有返回结果?
这是我的表结构:
id
int(11) Not null AUTO_INCREMENT
join_id
int(11) Not Null
webid
int(11) Not Null
content
text utf8_general_ci
这是我的索引
Keyname Type Unique Packed Field Cardinality
PRIMARY BTREE Yes No id 3332834
content BTREE No No content (333) 238059
id_index BTREE No No webid 151492
join_id BTREE No No join_id 36
content_ft FULLTEXT No No content 119029
这是我的查询:
SELECT * FROM myatts WHERE MATCH(content) AGAINST('Rat, D.D.' IN BOOLEAN MODE)
这里是解释:
1 SIMPLE myatts fulltext content_ft content_ft 0 1 Using where
任何帮助/指针都会很棒。谢谢!
【问题讨论】: