丁云鹏 11 miesięcy temu
rodzic
commit
7fa4fda402

+ 4 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/rank/RankService.java

@@ -54,9 +54,13 @@ public class RankService {
         });
         Collections.sort(items, Comparator.comparingDouble(o -> -o.getScore()));
 
+        log.info("RankItem sort {}", JSONUtils.toJson(items));
+
         List<Content> contents = CommonCollectionUtils.toList(items, RankItem::getContent);
         // 1 相似去重
         contents = deduplication(contents);
+        log.info("Deduplication {}", JSONUtils.toJson(contents));
+
         // 2 文章按照内容池分组
         Map<String, List<Content>> contentMap = new HashMap<>();
         for (Content c : contents) {