Commit 930d8092 by xupeng

修正无结果词过滤

parent 611e1909
...@@ -136,7 +136,8 @@ public class SuggestTask { ...@@ -136,7 +136,8 @@ public class SuggestTask {
if (CollectionUtils.isNotEmpty(lines)) { if (CollectionUtils.isNotEmpty(lines)) {
for (String line : lines) { for (String line : lines) {
if (StringUtils.isNotBlank(line)) { if (StringUtils.isNotBlank(line)) {
sensitiveMap.put(cleanKeyword(line), true); // 无结果词clean后会改变原词,导致部分包含特殊字符没有结果清洗后的词有结果
sensitiveMap.put(line.toLowerCase(), true);
} }
} }
} }
......
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