Hi,
I just build a simple table to test "match against". I think I used exact the same syntax as described in the mysql-manual, but it doesn't seem to work.
Structure:
CREATE TABLE `match_against` (
`id` int(10) unsigned NOT NULL auto_increment,
`keywords` tinytext NOT NULL,
`keywords2` tinytext NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `searchindex` (`keywords`,`keywords2`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Data:
INSERT INTO `match_against` VALUES (1, 'php', 'test');
INSERT INTO `match_against` VALUES (2, 'test', 'test test');
INSERT INTO `match_against` VALUES (3, 'test test test', 'php php');
Query:
SELECT id, MATCH (keywords, keywords2) AGAINST ('test')
FROM match_against
In the result the match-against column is 0 for all 3 records. Anyone has an idea why?? 😕
Lynky
PS: running MySQL 4.1.8