Quellcode durchsuchen

Merge branch 'feature/20241213-revert-crawlerdays' of Server/long-article-recommend into master

fengzhoutian vor 7 Monaten
Ursprung
Commit
6c9b0b8f0a

+ 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.3;
+        double maxReleaseScore = -0.15;
         double minScoreDays = 7;
-        double maxScoreDays = 120.0;
+        double maxScoreDays = 60.0;
         long timestamp = Optional.ofNullable(content.getRootPublishTimestamp()).orElse(content.getCrawlerTimestamp());
         int days = (int) ((now - timestamp) / 86400000);
         if (days < minScoreDays) {