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