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?
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?