Forum Moderators: open
For example, database has two fields; 'query string' and 'display results'. Now if I pass the database an input query string, I want it to return all 'display results' that match the input query string. The twist is that I need a 'broad match' to the query.
So, if I pass 'red widgets alabama', I need to produce display results from records that have a query string of any combination, in any order, of 'red', 'widgets', and 'alabama'. i.e. 'widgets red', 'alabama widgets', etc.
I think my best bet is to create an index (though I don't know how to do that off the top of my head). Looking for some emphasis on speed of returning results.
Any suggestions on how to tackle this problem?
TIA