Skip to content

Commit

Permalink
Merge pull request #3730 from microsoft/vipeke/lowscorevariation
Browse files Browse the repository at this point in the history
[LowScoreVariation]For first item with score more than MaxScoreForLow…
  • Loading branch information
vipeketi committed Apr 13, 2020
2 parents c61d092 + c9a5e56 commit 3210781
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ public static List<QueryResult> GetLowScoreVariation(List<QueryResult> qnaSearch
}

var topAnswerScore = qnaSearchResults[0].Score * 100;
if (topAnswerScore > MaximumScoreForLowScoreVariation)
{
filteredQnaSearchResult.Add(qnaSearchResults[0]);
return filteredQnaSearchResult;
}

var prevScore = topAnswerScore;

if ((topAnswerScore > MinimumScoreForLowScoreVariation) && (topAnswerScore <= MaximumScoreForLowScoreVariation))
if (topAnswerScore > MinimumScoreForLowScoreVariation)
{
filteredQnaSearchResult.Add(qnaSearchResults[0]);

Expand Down

0 comments on commit 3210781

Please sign in to comment.