Browse Source

Update CrawlerDaysDecreaseStrategy: increase maxScoreDays

StrayWarrior 7 tháng trước cách đây
mục cha
commit
5fd6531f4b

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/score/strategy/CrawlerDaysDecreaseStrategy.java

@@ -47,9 +47,9 @@ public class CrawlerDaysDecreaseStrategy implements ScoreStrategy {
     }
 
     private Double getContentScore(Content content, long now) {
-        double maxReleaseScore = -0.15;
+        double maxReleaseScore = -0.3;
         double minScoreDays = 7;
-        double maxScoreDays = 60.0;
+        double maxScoreDays = 120.0;
         long timestamp = Optional.ofNullable(content.getRootPublishTimestamp()).orElse(content.getCrawlerTimestamp());
         int days = (int) ((now - timestamp) / 86400000);
         if (days < minScoreDays) {