I am completely unsure if this is correct. I have a table like this
item_id | tag
5 mansell
6 musical
5 music
If someone searches the word "music" I want to find both item 6 and 5.
I am thinking something like
item_id IN
(
SELECT item_id FROM table WHERE tag LIKE 'music%'
OR MATCH(tag) AGAINST ('music' IN BOOLEAN MODE))
)
Does this seem to be proper?