been trying to get this one on my own for a few days but got out of ideas. Here's how it goes...
expect user input of 1 to x words into a local variable, every word has to be compared to a table with multiple strings, one at a time, if all words are true for one of the strings then do something (it will print other fields of that table ID to the user) or if one of words is missing do another thing (just tell the user the search returned no results) words have not to be matched completely.