SELECT *,
MATCH (`text`) AGAINST ('my work involves for' IN BOOLEAN MODE) `score`
FROM `messages` WHERE MATCH (`must_match`) AGAINST ('my work involves for' IN BOOLEAN MODE)
ORDER BY `score` DESC
So here user input is 'my work involves for'
id text must_match
--- ---- ------
1 my work is to help work,help
2 work involves help involves,work
Now I want result if mus_match column's all words match in user input So, from above row our result will be 2nd row
must_match column will contain words from text column