reduced the description weight by half (#4519)

This commit is contained in:
Alekhya
2020-06-26 10:20:54 -07:00
committed by GitHub
parent 5745a984aa
commit bfd79e1af2
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}