How can I use free text search entries to find items in a MySQL table?
For example, I have a simple table of wines like below:
id | wine
================================
1 Bollinger Special Cuvée Brut
2 Bollinger R.D. Extra Brut
3 Bollinger La Grande Année
4 Bollinger La Grande Année Brut
I have earlier used the LIKE pattern method to be able to search for e.g. "La Grande" (WHERE wine LIKE '%La Grande%'), and it works fine for more exact search phrases.
But if the user provides a string such as "Bollinger Brut", or "Cuvee" (without the grave accent) then the LIKE pattern method won't find any matches. Can I solve this using some MySQL tricks, or do I need some other method/algorithm to be able to make more ad hoc searches?