|
@@ -43,6 +43,8 @@ public class RankV19Strategy implements RankStrategy {
|
|
|
private List<String> touliuAccountGhIds;
|
|
private List<String> touliuAccountGhIds;
|
|
|
@Value("${topProducePlanId:}")
|
|
@Value("${topProducePlanId:}")
|
|
|
private String topProducePlanId;
|
|
private String topProducePlanId;
|
|
|
|
|
+ @Value("${hisFissionOpenRateMissingBaseline:0.32}")
|
|
|
|
|
+ private double hisFissionOpenRateMissingBaseline;
|
|
|
|
|
|
|
|
public RankResult rank(RankParam param) {
|
|
public RankResult rank(RankParam param) {
|
|
|
List<Content> result = new ArrayList<>();
|
|
List<Content> result = new ArrayList<>();
|
|
@@ -78,6 +80,10 @@ public class RankV19Strategy implements RankStrategy {
|
|
|
* weightService.getWeight(param.getStrategy(), param.getGhId(), index,
|
|
* weightService.getWeight(param.getStrategy(), param.getGhId(), index,
|
|
|
ScoreStrategyEnum.VIEW_COUNT_RATE.value());
|
|
ScoreStrategyEnum.VIEW_COUNT_RATE.value());
|
|
|
}
|
|
}
|
|
|
|
|
+ if (item.getScore(ScoreStrategyEnum.HIS_FISSION_OPEN_RATE.value()) == 0) {
|
|
|
|
|
+ score += hisFissionOpenRateMissingBaseline * weightService.getWeight(param.getStrategy(), param.getGhId(), index,
|
|
|
|
|
+ ScoreStrategyEnum.HIS_FISSION_OPEN_RATE.value());
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
score = item.getScore(ScoreStrategyEnum.SIMILARITY.value())
|
|
score = item.getScore(ScoreStrategyEnum.SIMILARITY.value())
|
|
|
* weightService.getWeight(param.getStrategy(), param.getGhId(), index,
|
|
* weightService.getWeight(param.getStrategy(), param.getGhId(), index,
|