-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] consider moving to uFuzzy #179
Comments
I can take a look to see how it performs (in terms of speed and quality) just out of curiosity, but unless I'm blown away by the results, there's little chance I'm going to replace Minisearch. |
when not trying to fuzzy match, MiniSearch is one of the better ones (fast to search, no terrible matches, but startup indexing still takes 600ms vs 0.5ms for my 162k test dataset and consumes hundreds of MB ram), so you won't be as blown away as someone coming from Fuse. that being said, MiniSearch is quite bad outside of exact matches or exact prefixes. its |
i copied your settings from obsidian-omnisearch/src/search/omnisearch.ts Lines 161 to 165 in c896fd4
into and got 0 results with |
Thanks for those comments and clarifications. From your README:
For context, fulltext search is an important feature for me. My goal with Omnisearch is to allow retrieval of documents from queries that often don't match with filenames or headings. I need it to work in a "good enough" way for varied users who all use Obsidian differently; many of them have folders that contain thousands of (sometimes quite large) documents. I see how your demo returns relevant results with shorter queries, but I'm mainly worried with the performances and results quality for all those users. Since Minisearch is at least "good enough" for them, I'm cautious about switching it for something else and breaking their workflow. |
yep, no worries. 👍 for sure there's a tipping point when building an index is going to be more appropriate; "thousands of (sometimes quite large) documents" is definitely one of those cases. for fulltext search, you're better off stemming and doing spelling correction on the needle before continuing with efficient lookups in the index. if you do end up experimenting with uFuzzy, i can help you with the settings to get the most out of it. |
Is your feature request related to a problem? Please describe.
https://github.com/leeoniya/uFuzzy is apparently faster & yields more results than minisearch.
see comparison:
https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy,MiniSearch&search=super%20ma
Describe the solution you'd like
if not too much hassle, swap searching library to uFuzzy
Describe alternatives you've considered
continue using minisearch, as it is ok now.
Additional context
more info about uFuzzy in their readme
The text was updated successfully, but these errors were encountered: