HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by rgbjoy | Hacker News Reader
Full thread
rgbjoy
·
I’m a bit confused. “Unit” brings up Turkmenistan before United States.
View on HN
Arch485
·
Turkmenistan is 8 edits, United States is 9. Levenshtein Distance is not actually a good search algorithm :)
card_zero
·
That's correct, yes. Turkmenistan: 8 deletions (Trkmesan). United States: 9 deletions (ed States), including the space character.
d0100
·
You'll have to add more weights to substring matches, fuzzy search by itself is usually not enough for intuitive search
Reply on news.ycombinator.com