Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Fuzzy Search scoring- sub-string scoring for less characters #163

Closed
jjw24 opened this issue Mar 10, 2020 · 1 comment
Closed

Fuzzy Search scoring- sub-string scoring for less characters #163

jjw24 opened this issue Mar 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jjw24
Copy link
Owner

jjw24 commented Mar 10, 2020

This current method of scoring is just a little funky for users who dont understand the intention behind it.
if (allSubstringsContainedInCompareString) { int count = query.Count(c => !char.IsWhiteSpace(c)); int factor = count < 4 ? 10 : 5; score += factor * count; }

if you search code for Visual Studio Code, you get nothing. But searching cod you get Visual Studio Code because more weight is given to number of characters matched is less than 4. @theClueless should this be removed?

@jjw24 jjw24 added the bug Something isn't working label Mar 10, 2020
@jjw24
Copy link
Owner Author

jjw24 commented Apr 12, 2020

Brief discussion of the above logic here #112

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant