Note that there are some explanatory texts on larger screens.

plurals
  1. POFULLTEXT For Search Troubles
    primarykey
    data
    text
    <p>I've created a search before, and it works fine, but trying to do it in a different table I'm running into some issues.</p> <p>I'm getting the error...</p> <p>SQL query failed. Check your query.</p> <p>Error Returned: Can't find FULLTEXT index matching the column list</p> <p>I have (to the best of my knowledge) successfully converted the columns into fulltext and the database is set to...</p> <p>Here's my SQL information...</p> <pre>CREATE TABLE `users` ( `auto` int(11) NOT NULL AUTO_INCREMENT, `user_id` varchar(6) DEFAULT NULL, `username` varchar(15) DEFAULT NULL, `first_name` varchar(20) NOT NULL DEFAULT '', `last_name` varchar(20) NOT NULL DEFAULT '', `email` varchar(30) NOT NULL DEFAULT '', `password` varchar(128) NOT NULL DEFAULT '', `ranking` varchar(128) DEFAULT '1', `sex` varchar(128) NOT NULL DEFAULT '', `active` varchar(128) NOT NULL DEFAULT '0', `ppic` varchar(128) NOT NULL DEFAULT 'ppic.jpg', `time_zone` varchar(128) DEFAULT 'America/Los_Angeles', `adult_filter` varchar(128) DEFAULT '0', PRIMARY KEY (`auto`), FULLTEXT KEY `user_id` (`user_id`,`username`,`first_name`,`last_name`,`email`,`password`,`sex`,`active`,`ppic`,`time_zone`,`adult_filter`), FULLTEXT KEY `user_id_2` (`user_id`,`username`,`first_name`,`last_name`), FULLTEXT KEY `ft_index_name2` (`user_id`,`username`,`first_name`,`last_name`), FULLTEXT KEY `ft_index_name32` (`user_id`,`username`,`first_name`,`last_name`,`email`,`password`,`ranking`,`sex`,`active`,`ppic`,`time_zone`,`adult_filter`), FULLTEXT KEY `ft_index_name322` (`user_id`), FULLTEXT KEY `ft_index_name3223` (`first_name`), FULLTEXT KEY `ft_index_name32233` (`last_name`), FULLTEXT KEY `ft_index_name322433` (`username`), FULLTEXT KEY `ft_index_name3232433` (`username`) ) ENGINE=MyISAM AUTO_INCREMENT=40 DEFAULT CHARSET=utf8</pre> <p>if you haven't noticed based on this, I have no idea what I'm doing with the fulltext key, which may be the issue. Yet I did something similar the first time around and it works just fine.</p> <p>This is my search query...</p> <pre>SELECT user_id, username, first_name, last_name, MATCH(username, first_name, last_name) AGAINST('" . $search . "') AS score FROM users WHERE MATCH(username, first_name, last_name) AGAINST('" . $search . "') ORDER BY username</pre> <p>Does anyone know what may be causing this issue? I've been at this for days and can't figure out the problem. Any help is appreciated, thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload