【发布时间】:2013-06-06 09:30:11
【问题描述】:
如果我有这样的结构:
CREATE TABLE IF NOT EXISTS `sheet` (
`id` int(11) NOT NULL,
`title` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
`html` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `title` (`title`),
FULLTEXT KEY `html` (`html`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
我需要像这样进行全文搜索查询:
SELECT * FROM `cms`
WHERE MATCH ( title, html) AGAINST ('+psoriasis +categorizacion' IN BOOLEAN MODE)
我应该为title 添加一个全文索引吗?
【问题讨论】:
标签: mysql indexing full-text-search