What's the best way of generating super relevant results from a MySQL table? I have a list of sites in a table with a title, description and tags. How can I set up a SELECT query/search function in PHP that will find user typed keywords in all three of those columns, and whilst remaining as quick as possible keep the following in mind:
- Matches in the title would be the most relevant, but obviously matches in title as well as description/tags would be even more relevant
- Matches in the tags would be the second most relevant
- Keywords can be matched in any order
- Not a requirement but if all keywords aren't matched it could match any of them (i'm not sure if this would make the call too slow)
Are there any specific changes I would need to make to my table?