mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
reduced the description weight by half (#4519)
This commit is contained in:
parent
5745a984aa
commit
bfd79e1af2
@ -265,7 +265,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
{
|
||||
var displayNameMatch = StringMatcher.FuzzySearch(query, DisplayName);
|
||||
var descriptionMatch = StringMatcher.FuzzySearch(query, Description);
|
||||
var score = new[] { displayNameMatch.Score, descriptionMatch.Score }.Max();
|
||||
var score = new[] { displayNameMatch.Score, descriptionMatch.Score/2 }.Max();
|
||||
return score;
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
var nameMatch = StringMatcher.FuzzySearch(query, Name);
|
||||
var descriptionMatch = StringMatcher.FuzzySearch(query, Description);
|
||||
var executableNameMatch = StringMatcher.FuzzySearch(query, ExecutableName);
|
||||
var score = new[] { nameMatch.Score, descriptionMatch.Score, executableNameMatch.Score }.Max();
|
||||
var score = new[] { nameMatch.Score, descriptionMatch.Score/2, executableNameMatch.Score }.Max();
|
||||
return score;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user