Hacker News new | ask | show | jobs
by Fannon 1 day ago
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.

2 comments

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