Skip to content

Commit

Permalink
Fix for #411: minimum relevance to rank above packages and prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Aug 13, 2018
1 parent 4074be9 commit e815091
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected int computeRelevance(ContentAssistContext context) {
relevance *= 0.9f; // promote fields
}

return relevance;
return Math.max(relevance, RelevanceConstants.R_INTERESTING);
}

private Relevance getRelevanceClass() {
Expand Down

0 comments on commit e815091

Please sign in to comment.