|
@@ -181,12 +181,14 @@ public abstract class RankStrategyBasic implements RankStrategy {
|
|
|
|
|
|
protected double getGuaranteeScoreCoefficient(ScoreParam scoreParam, Map<String, Object> ext) {
|
|
|
if (scoreParam.getExpCodeSet().contains(guaranteeExp)) {
|
|
|
+ ext.put("guarantee", 1);
|
|
|
if (ext.get("guaranteeWeight") == null) {
|
|
|
return 1.0;
|
|
|
} else {
|
|
|
return Math.pow((double) ext.get("guaranteeWeight"), alpha);
|
|
|
}
|
|
|
} else {
|
|
|
+ ext.put("guarantee", 0);
|
|
|
return 1.0;
|
|
|
}
|
|
|
}
|