...
|
...
|
@@ -318,8 +318,9 @@ public class IndexController implements ApplicationEventPublisherAware { |
|
|
suggestWordDef.setWeight(KeywordType.Customized.getWeightValue());
|
|
|
suggestWordDefService.insertBatch(Arrays.asList(suggestWordDef));
|
|
|
|
|
|
|
|
|
SuggestIndexBO suggestIndexBO = new SuggestIndexBO(suggestWordDef.getKeyword(), suggestWordDef.getType(), suggestWordDef.getWeight(), suggestWordDef.getCount(), suggestWordDef.getCountForApp(), suggestWordDef.getCountForBlk());
|
|
|
yohoIndexService.addIndexData(ISearchConstants.INDEX_NAME_SUGGEST, JSONObject.toJSONString(suggestIndexBO), MD5Util.string2MD5(keyword.trim().toLowerCase()));
|
|
|
yohoIndexService.addIndexData(ISearchConstants.INDEX_NAME_SUGGEST, MD5Util.string2MD5(keyword.trim().toLowerCase()), JSONObject.toJSONString(suggestIndexBO));
|
|
|
}
|
|
|
|
|
|
return getResultMap(200, "success");
|
...
|
...
|
|