|
@@ -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) {
|