I have a database with a name column having data like
'Very big News'
'News'
'something else'
'New Nes'
'Fresh News'
'Something else'
Now given a string of words, how can I find if any of the words in the given string is contained in the name field?
For example:
I have a string 'super very news'. I need to look in my database to see if I have any record such that the name field contains either 'super' or 'very' or 'news' or 'super very' or 'very news'.
Update based on comments. See the query set docs here.
This creates the equivalent of:
which produces (roughly) the following SQL in a single query: