如果我有这样的结构:
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)
我应该添加一个 FULLTEXT 索引title
吗?