Live data from Hacker News

Show HN: Frontend Fuzzy Search

github.com

31–38 of 38 posts

Re: Show HN: Frontend Fuzzy Search

#31

Any comparison data with https://github.com/nextapps-de/flexsearch ? Also what player are using to play/pause gif in your readme?

Hi, thank you for your questions. Unfortunately there are no comparisons yet. The gif is simply a looped screen recording created with Camtasia. Best regards!

Re: Show HN: Frontend Fuzzy Search

#33
post #25
post #21

I should probably post the code for my n-gram fuzzy search with an inverted index. Without tests, the entire code fits on a single screen (I love ClojureScript). It works on the backend (JVM) and the frontend (Javascript) and has been in production use for the last [checks notes] 8 years.

Please do, that would be awesome.

+1

Re: Show HN: Frontend Fuzzy Search

#34
post #9

Earlier quoted context omitted.

It's subjective, I have to admit. I would say a search is accurate if most people find what they are looking for in their dataset in the first try. Distance definitions such as the Levenshtein and Damerau-Levenshtein distances provide a solid basis for discussions on accuracy. However, they are costly to compute and hence not widely adopted in fuzzy search libraries. I started by using the known filter equation for t…

> It's subjective, I have to admit. I would say a search is accurate if most people find what they are looking for in their dataset in the first try. I'd say a search is accurate if it finds what most closely matches the query, for some definition of "matches". A search is useful if most people can find what they are looking for on the first try. That is, a search being accurate doesn't necessarily translate to usefu…

Thank you for your explanation, I get your point. Regarding your last suggestion: I think it would be great to measure how often the correct result is near the top. However, don't we face the same issue as before? What is the correct result? Is it the term the user has in mind when writing the query? But what if they make a typo, and the term with the typo also exists in the dataset? Or they just type half of the term they are thinking of, but there are many terms in the dataset with the same prefix?

So, in the end, I believe it's worthwhile to try different implementations and share our subjective experiences.

Re: Show HN: Frontend Fuzzy Search

#35

Earlier quoted context omitted.

> It's subjective, I have to admit. I would say a search is accurate if most people find what they are looking for in their dataset in the first try. I'd say a search is accurate if it finds what most closely matches the query, for some definition of "matches". A search is useful if most people can find what they are looking for on the first try. That is, a search being accurate doesn't necessarily translate to usefu…

Thank you for your explanation, I get your point. Regarding your last suggestion: I think it would be great to measure how often the correct result is near the top. However, don't we face the same issue as before? What is the correct result? Is it the term the user has in mind when writing the query? But what if they make a typo, and the term with the typo also exists in the dataset? Or they just type half of the ter…

Yes, you are right.
Post reply on HN