Commit c7e57244 by liuyu

2024/03/04 指定标题不进行聚合

parent 912ac37b
...@@ -43,6 +43,8 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta ...@@ -43,6 +43,8 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta
private final Logger log = LogManager.getLogger(TaskServiceTemplate.class); private final Logger log = LogManager.getLogger(TaskServiceTemplate.class);
private static final List<String> FILTER_TITLE = Arrays.asList("Notitle");
private final TemplateTitleService templateTitleService; private final TemplateTitleService templateTitleService;
private final EsDao esDao; private final EsDao esDao;
...@@ -242,7 +244,7 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta ...@@ -242,7 +244,7 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta
String tag = tagGroup.entrySet().stream().max(Map.Entry.comparingByValue()).map(Map.Entry::getKey).get(); String tag = tagGroup.entrySet().stream().max(Map.Entry.comparingByValue()).map(Map.Entry::getKey).get();
// 生成模板 // 生成模板
String title = Tools.filterSymbol(result.getClusterName()); String title = Tools.filterSymbol(result.getClusterName());
if (title.length() < 6) { if (title.length() < 6 || FILTER_TITLE.contains(title)) {
continue; continue;
} }
TemplateTitleVo templateTitleVo = new TemplateTitleVo(title, tag, sourceList.get(result.getDataPoints().get(0)).getUrl(), Tools.numberMatch(title)); TemplateTitleVo templateTitleVo = new TemplateTitleVo(title, tag, sourceList.get(result.getDataPoints().get(0)).getUrl(), Tools.numberMatch(title));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment