Reputation: 5174
Is there any way to write an MySQL search that can compensate for user-errors in spelling and the like?
As random examples, someone might type [email protected] instead of [email protected].
Even help with search terms to help pull up relevant data from Google will be helpful. I'm not looking for a search engine, per say, what I'm looking for is some kind of spelling aid for an administrative control panel.
Upvotes: 4
Views: 2180
Reputation: 3059
The topic you're delving into is called "Fuzzy Lookup". It's a big rabbit hole to jump down, depending on how precise you'd like to get. There are various methods, such as:
Some references to check out:
Upvotes: 4
Reputation: 26431
There are many ways to do the same. One of I personally like is SOUNDS LIKE
.
Checkout the SOUNDEX Example.
Upvotes: 3