suttercain Posted August 5, 2007 Share Posted August 5, 2007 Ho guys, I am running the following: mysql_query("ALTER TABLE reviews ADD FULLTEXT (title)") or die(mysql_error()); mysql_query("ALTER TABLE reviews ADD FULLTEXT (body)") or die(mysql_error()); $result = mysql_query("SELECT movieId, title, MATCH (title, body) AGAINST ('" .$row['title']. "') FROM reviews WHERE MATCH (title, body) AGAINST ('" .$row['title']. "')") or die(mysql_error()); but I keep getting the error "Can't find FULLTEXT index matching the column list". Is my syntax right on the first two lines? This is going to be used to gather related articles based on the currect articles title and echoed as such. Thanks SC Link to comment https://forums.phpfreaks.com/topic/63428-using-altertable-and-fulltext-to-search-a-mysql-table/ Share on other sites More sharing options...
Barand Posted August 5, 2007 Share Posted August 5, 2007 try mysql_query("ALTER TABLE reviews ADD FULLTEXT 'ft_idx_1' (title, body)") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/63428-using-altertable-and-fulltext-to-search-a-mysql-table/#findComment-316168 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.