Question

Am getting error in Database Searches with Full-Text Search in MySQL 5.7.2 on Ubuntu 16.04

Posted December 1, 2017 1k views
MySQLUbuntu 16.04

Hello,

Present am using PHP7 Mysql 5.7 version, Am getting error in this version, FULLTEXT not working . please find below error.

SQL query: Documentation

SELECT * FROM js_skills_achievements
WHERE MATCH(skill1,skill2,skill3,skill4) AGAINST ('java developer in niranjankumar chowdam');

MySQL said: Documentation

1191 - Can’t find FULLTEXT index matching the column list

I added fulltext index to this table , This is Working in 5.5 version . But not working in 5.7 mysql . Where can i change the permission , Please give me solution for this …

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @niranjanchowdam,

You’ll need to run the following query in order to use the FUlltext function

ALTER TABLE `js_skills_achievements` ADD FULLTEXT('skill1','skill2','skill3','skill4');

As soon you ran this query to actually alter the table, you should actually be able to run your query without a problem

SELECT * FROM js_skills_achievements
WHERE MATCH(skill1,skill2,skill3,skill4) AGAINST ('java developer in niranjankumar chowdam');

Regards,
KDSys

Submit an Answer