After i have normalized my db i am now using fulltext search on myiasm tables.
I have several search scenarios
search "hello" IN "hello friend
search "hell" IN "hello friend,welcome to hell"
search 'fri"ends" in 'come play with fri"ends'
I need the best match and currently using
SELECT cu.ID as UID ,MATCH cu.content AGAINST ('hell') as relevance
FROM cht_user cu
JOIN cht_agent_script cas ON ( cas.UID = cu.ID AND cas.AID = '315')
WHERE MATCH cu.content AGAINST ('hell')
ORDER BY relevance DESC
problems are
number 3 wont give a result
number 2 wont give a result
number 1 is the only one that will work