Hacker News new | ask | show | jobs
by archonis 1 day ago
Exact match results followed by fuzzy match would cover most use cases, and clear toggles would cover the remaing ones.

It boggles the mind why this particular wheel keeps getting reinvented in octoganal shapes.

2 comments

I tried this actually and wasn't so happy with the results. First you search / index twice and that will cost. You'll have to wait for the slower of the two as you don't want to reorder after already showing the user.

You'd need some scoring where precise hits get better score than those only found by fuzzy search. With that it's maybe acceptable, but I personally preferred just being able to switch it easily/quickly when needed and by preference.

That's a fair point. Personally, the search latency wouldn't bother me unless search is the primary mode of interaction in the application context.
Fuzzy is usually faster. Grab the fuzzy results then exact match within them, no second index needed
Exact match on a typo brings up a submission with that typo, which is likely low quality
I guess one man's quirk is another man's feature. (or vice-versa)