Showing
1 changed file
with
2 additions
and
2 deletions
@@ -273,7 +273,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | @@ -273,7 +273,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | ||
273 | } | 273 | } |
274 | } | 274 | } |
275 | 275 | ||
276 | - public JSONObject suggestTipsBySuggestIndex(Map<String, String> paramMap, boolean hasChangedKeyword) { | 276 | + public JSONObject suggestTipsBySuggestIndex(final Map<String, String> paramMap, boolean hasChangedKeyword) { |
277 | String queryWord = paramMap.get(SearchRequestParams.PARAM_SEARCH_KEYWORD); | 277 | String queryWord = paramMap.get(SearchRequestParams.PARAM_SEARCH_KEYWORD); |
278 | long begin = System.currentTimeMillis(); | 278 | long begin = System.currentTimeMillis(); |
279 | logger.info("[func=suggestTipsBySuggestIndex][query={}][begin={}]", queryWord, begin); | 279 | logger.info("[func=suggestTipsBySuggestIndex][query={}][begin={}]", queryWord, begin); |
@@ -357,7 +357,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | @@ -357,7 +357,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | ||
357 | Map<String, String> newParamMap = new HashMap<>(paramMap.size()); | 357 | Map<String, String> newParamMap = new HashMap<>(paramMap.size()); |
358 | newParamMap.putAll(paramMap); | 358 | newParamMap.putAll(paramMap); |
359 | newParamMap.put(SearchRequestParams.PARAM_SEARCH_KEYWORD, correnctSpellingKeyword); | 359 | newParamMap.put(SearchRequestParams.PARAM_SEARCH_KEYWORD, correnctSpellingKeyword); |
360 | - JSONObject correntSpellingSuggestResult = suggestTipsBySuggestIndex(paramMap, true); | 360 | + JSONObject correntSpellingSuggestResult = suggestTipsBySuggestIndex(newParamMap, true); |
361 | correntSpellingSuggestResultTerms = correntSpellingSuggestResult != null ? (List<String>) correntSpellingSuggestResult.get("terms_suggestion") : null; | 361 | correntSpellingSuggestResultTerms = correntSpellingSuggestResult != null ? (List<String>) correntSpellingSuggestResult.get("terms_suggestion") : null; |
362 | } | 362 | } |
363 | 363 |
-
Please register or login to post a comment