Hi I'm worried about how to implement a simple search query, my scenario is:
tag VARCHAR 255
Now I need to search inside the tag field and I can use two kinds of queries:
SELECT * FROM table WHERE tag LIKE '%1111%' OR LIKE '%2222%' OR LIKE '%3333%';
or
SELECT * ,MATCH(tag) AGAINST('+1111','+2222','+3333' IN BOOLEAN MODE) as score FROM table ORDER BY score DESC ;
Which is more accurate/precise and which is faster?
Thanks