Im trying to implement a search function in my database but not sure what would be a smart way to do it.
Suppose I have a blog column and want to search if "middle school" is inside, I would do: columnName like '%middle school%' but if the search key words are "middle school soccer", I don't know how to recognize and break this into two logic parts as "middle school" and "soccer". How would this be implemented or is it has to deal with some complext AI concept?
Right now I only know to use columnName like '%middle%' or columnName like '%school%' or columnName like '%soccer%'. Hope someone can give me some advice to improve it. Thanks.