Twitter
youtube
Discord
Contact us
Menu
Forums
New posts
Trending
Rules
Explore
Bioenergetic Wiki
Bioenergetic Life Search
Bioprovement Peat Search
Ray Peat Interviews by Danny Roddy
Master List: Ray Peat, PhD Interviews & Quotes by FPS
Traveling Resources
Google Flights
Wiki Voyage
DeepL Translator
Niche
Numbeo
Merch
Log in
Register
What's new
Search
Search
Search engine:
Threadloom Search
XenForo Search
Search titles only
By:
New posts
Trending
Menu
Log in
Register
Navigation
More options
Light/Dark Mode
Contact us
Close Menu
Forums
Information
World News
Show HN: uFuzzy.js – A tiny, efficient fuzzy search that doesn't suck
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hacker News" data-source="post: 70585" data-attributes="member: 365"><p>Hello HN!</p><p>I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0.</p><p>TL;DR</p><p>The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own text/json corpus into the UI to try it against your own dataset.</p><p>Live demo/compare with a few other libs (there are many more in the codebase, in various states of completion, WIP):</p><p><a href="https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy,fuzzysort,QuickScore,Fuse&search=super%20ma" target="_blank">https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...</a></p><p>In isolation for perf assessment:</p><p><a href="https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&search=super%20ma" target="_blank">https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...</a></p><p>To increase fuzziness and get broader results, try setting intraMax=1 (core) and enable outOfOrder (userland):</p><p><a href="https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&outOfOrder&intraMax=1&search=super%20ma" target="_blank">https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...</a></p><p>Also play with the sortPreset selector to swap out the default Array.sort() for one in userland that prioritizes typehead-ness (the resultset remains identical).</p><p>Still TODO:</p><p></p><p>[CODE] - Example of stripping diacritics</p><p> - Example of using non-latin charsets</p><p> - Example of prefix-caching to improve typeahead perf even further</p><p> - Example of poor man's document search (matching multiple object properties)</p><p>[/CODE]</p><p>That's all, thanks!</p><p></p><hr /><p></p><p>Comments URL: <a href="https://news.ycombinator.com/item?id=33035580" target="_blank">https://news.ycombinator.com/item?id=33035580</a></p><p></p><p>Points: 39</p><p></p><p># Comments: 5</p><p></p><p><a href="https://github.com/leeoniya/uFuzzy" target="_blank">Continue reading...</a></p></blockquote><p></p>
[QUOTE="Hacker News, post: 70585, member: 365"] Hello HN! I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0. TL;DR The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own text/json corpus into the UI to try it against your own dataset. Live demo/compare with a few other libs (there are many more in the codebase, in various states of completion, WIP): [URL='https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy,fuzzysort,QuickScore,Fuse&search=super%20ma']https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...[/URL] In isolation for perf assessment: [URL='https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&search=super%20ma']https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...[/URL] To increase fuzziness and get broader results, try setting intraMax=1 (core) and enable outOfOrder (userland): [URL='https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&outOfOrder&intraMax=1&search=super%20ma']https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...[/URL] Also play with the sortPreset selector to swap out the default Array.sort() for one in userland that prioritizes typehead-ness (the resultset remains identical). Still TODO: [CODE] - Example of stripping diacritics - Example of using non-latin charsets - Example of prefix-caching to improve typeahead perf even further - Example of poor man's document search (matching multiple object properties) [/CODE] That's all, thanks! [HR][/HR] Comments URL: [URL]https://news.ycombinator.com/item?id=33035580[/URL] Points: 39 # Comments: 5 [url="https://github.com/leeoniya/uFuzzy"]Continue reading...[/url] [/QUOTE]
Loading…
Insert quotes…
Verification
Post reply
Forums
Information
World News
Show HN: uFuzzy.js – A tiny, efficient fuzzy search that doesn't suck
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top