MySQL匹配不正常工作

CREATE TABLE `channels` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) DEFAULT NULL,
  `description` text,
  `tagline` varchar(50) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `image` varchar(50) DEFAULT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `index_channels_user` (`user_id`),
  FULLTEXT KEY `description` (`description`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;


INSERT INTO 
 `channels` (`id`, `name`, `description`, `tagline`, `created_at`, `image`, `user_id`)
VALUES
 (1, 'sdsd', 'Hello world!', 'dsdsd', '2011-10-09 11:31:59', NULL, 1);


SELECT
  c.id, c.name
FROM channels c
WHERE 
  MATCH(c.description) AGAINST ('Hell' IN BOOLEAN MODE)

我得到0结果,为什么?

最佳答案 是的@Ben有一点,停止词导致这个问题

试试这些

全文布尔模式在http://bugs.mysql.com/bug.php?id=19583搜索停用词问题

http://www.nivas.hr/blog/2009/09/15/how-to-disable-mysql-fulltext-stopwords/处替代解决这些问题

点赞