-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Would it be possible to improve the fuzzy search algorithm so it can handle simple typos? Here is an example:
If you have perfect spelling as above you get a good match (69%) and the highlight captures the entire phrase. However, if you transpose the last two letters of the search string, the score drops to 25% and ranks below a result that has shorter matches. Also, the highlight is no longer showing as much as it could. The search string has swapped the last two letters, but the highlight has now dropped the last 10 letters. I was expecting the highlight to at least contain "turn any list into an animat" since this is an exact match. I could understand if the word "animated" gets dropped from the highlight, but why is the prior word "an" being dropped as well?
Here is a more extreme example, the "x" at the end of the search string is causing the entire result to be omitted, even though the first 5 words of the search appear perfectly in the result. The misspelled word in the search poisons the entire query.


