搜索什么都是返回空結果CREATE TABLE IF NOT EXISTS `article` (
`aid` bigint(100) NOT NULL AUTO_INCREMENT,
`content` mediumtext NOT NULL,
`title` varchar(50) NOT NULL,
PRIMARY KEY (`aid`),
FULLTEXT KEY `title` (`title`,`content`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;INSERT INTO `article` (`aid`, `content`, `title`) VALUES
('this is php ', 'php php'),
( '中国 中国 中国 ', '中国 中国 ');mysql> select * from article where match(title,content) against('php');
Empty set (0.00 sec)
`aid` bigint(100) NOT NULL AUTO_INCREMENT,
`content` mediumtext NOT NULL,
`title` varchar(50) NOT NULL,
PRIMARY KEY (`aid`),
FULLTEXT KEY `title` (`title`,`content`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;INSERT INTO `article` (`aid`, `content`, `title`) VALUES
('this is php ', 'php php'),
( '中国 中国 中国 ', '中国 中国 ');mysql> select * from article where match(title,content) against('php');
Empty set (0.00 sec)
不是只是中文的原因, 英文也一样, 用官方手册的例子, 搜索”database“有結果, 但搜索其它单词也好像按概率出现一样 如”following“ 就没了
2.MySQL带有一个内建的非用词(stopword)列表....
3.
4.
5.
http://blog.sina.com.cn/yanpeipan