丁云鹏 vor 11 Monaten
Ursprung
Commit
874de998b5

+ 1 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/rank/strategy/RankV3Strategy.java

@@ -55,10 +55,9 @@ public class RankV3Strategy implements RankStrategy {
 
         // 1 排序
         Collections.sort(items, (o1, o2) -> -Double.compare(o1.getScore(), o2.getScore()));
+        log.info("SortResult {}", JSONUtils.toJson(items));
         // 2 相似去重
         List<Content> contents = CommonCollectionUtils.toList(items, RankItem::getContent);
-        log.info("Sort result {}", JSONUtils.toJson(contents));
-
         contents = deduplication(contents);
         log.info("Deduplication {}", JSONUtils.toJson(contents));