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
How to tweak handling of spaces? #5
Comments
thanks!
depending on your corpus, this may or may not be great. effectively it treats the whole thing as one big term with a bunch of junk in between. you'll also lose the benefit boosting multiple terms that fall at expected bounds (whitespace, punct, etc). you can do a bit better by swapping out the sorting function for one that prioritizes other aspects of matches to maybe get better ordering than you get in the demo. there is currently no counter in the but you also get stuff like this, which i don't think is avoidable with the settings necessary for the behavior you want. for cases where you just want to mash keys without much thought, uFuzzy is probably not going to satisfy. fuzzysort, QuickScore and others do better in this case. |
if you don't allow |
I see. |
@leeoniya It seems like in https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&search=supermariobros&intraIns=1&intraMode=1&intraChars=[a-z\d%20] |
Same here. And thanks for your info which helps me find the reason that causes the unexpected results :) |
Hi, your library looks awesome! Kudos to you.
I was trying the demo, but I couldn't find a way to tell uFuzzy to include results that contain spaces in between the search query. I want to get results like "Super Markup Man" or "Super Mario" when querying for "superma" (just remove the space between
super
andma
in the example query).Is this possible?
The text was updated successfully, but these errors were encountered: