Selaa lähdekoodia

历史表现去除来源标题数据

wangyunpeng 9 kuukautta sitten
vanhempi
commit
5bbb579aa9

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recall/RecallService.java

@@ -193,8 +193,8 @@ public class RecallService implements ApplicationContextAware {
         long start = System.currentTimeMillis();
 
         Set<String> titleList = contentList.stream().map(Content::getTitle).collect(Collectors.toSet());
-        Set<String> crawlerTitleList = contentList.stream().map(Content::getCrawlerTitle).collect(Collectors.toSet());
-        titleList.addAll(crawlerTitleList);
+//        Set<String> crawlerTitleList = contentList.stream().map(Content::getCrawlerTitle).collect(Collectors.toSet());
+//        titleList.addAll(crawlerTitleList);
         // 获取历史已发布文章
         List<Article> hisArticleList = new ArrayList<>();
         List<List<String>> titlePartition = Lists.partition(new ArrayList<>(titleList), 1000);