|
@@ -4,9 +4,11 @@ package com.tzld.longarticle.recommend.server.service.score;
|
|
|
import com.tzld.longarticle.recommend.server.common.ThreadPoolFactory;
|
|
|
import com.tzld.longarticle.recommend.server.service.score.strategy.SimilarityStrategy;
|
|
|
import com.tzld.longarticle.recommend.server.service.score.strategy.ViewCountStrategy;
|
|
|
+import com.tzld.longarticle.recommend.server.service.score.strategy.ViewMultiplierStrategy;
|
|
|
import com.tzld.longarticle.recommend.server.util.CommonCollectionUtils;
|
|
|
import com.tzld.longarticle.recommend.server.util.JSONUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeansException;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
import org.springframework.context.ApplicationContextAware;
|
|
@@ -85,6 +87,9 @@ public class ScoreService implements ApplicationContextAware {
|
|
|
List<ScoreStrategy> strategies = new ArrayList<>();
|
|
|
strategies.add(strategyMap.get(SimilarityStrategy.class.getSimpleName()));
|
|
|
strategies.add(strategyMap.get(ViewCountStrategy.class.getSimpleName()));
|
|
|
+ if (StringUtils.equals(param.getStrategy(), "ArticleRankV3")) {
|
|
|
+ strategies.add(strategyMap.get(ViewMultiplierStrategy.class.getSimpleName()));
|
|
|
+ }
|
|
|
|
|
|
return strategies;
|
|
|
}
|