Commit e6f56eb1 by xupeng

fix code

parent 08647cb3
......@@ -226,6 +226,9 @@ public class SuggestTask {
// 不过滤的suggest词,计算分值写es
if (!isFilterSuggestKeyword(suggestKeywordInfo)) {
// 转拼音
suggestKeywordInfo.setKeywordPinYin(PinYinUtils.changeToWithoutTonePinYin(suggestKeywordInfo.getKeyword(), ""));
// 保存es前执行标签清洗
cleanBeforeSaveToEs(suggestKeywordInfo);
......@@ -259,7 +262,6 @@ public class SuggestTask {
if (suggestKeywordInfo == null) {
suggestKeywordInfo = new EsSuggestKeywordInfo();
suggestKeywordInfo.setKeyword(keyword);
suggestKeywordInfo.setKeywordPinYin(PinYinUtils.changeToWithoutTonePinYin(keyword, ""));
suggestKeywordInfo.setYearCount(searchKeywordInfo.getYearPv());
suggestKeywordInfo.setYearClickCount(searchKeywordInfo.getYearProductClickCount());
......
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