TonyHaikara / silk-platform

0 stars 4 forks source link

Fuzzy search for skills #6

Open ywarnier opened 3 years ago

ywarnier commented 3 years ago

There is a skill design floor but searching for floor doesn't return this skill.

The search should at least be of type SELECT name FROM skills WHERE name LIKE '%$search%' rather than SELECT name FROM skills WHERE name LIKE '$search%';

The best way to do it would be to add a fulltext index to the table and use MATCH() AGAINST () instead of LIKE. See https://dev.mysql.com/doc/refman/5.6/en/innodb-fulltext-index.html