Y
Hacker News
new
|
ask
|
show
|
jobs
by
rgbjoy
698 days ago
I’m a bit confused. “Unit” brings up Turkmenistan before United States.
3 comments
Arch485
698 days ago
Turkmenistan is 8 edits, United States is 9. Levenshtein Distance is not actually a good search algorithm :)
link
card_zero
698 days ago
That's correct, yes. Turkmenistan: 8 deletions (Trkmesan). United States: 9 deletions (ed States), including the space character.
link
d0100
698 days ago
You'll have to add more weights to substring matches, fuzzy search by itself is usually not enough for intuitive search
link