Authored by Gino Zhang

将搜索返回的建议词数量修改为3个

... ... @@ -48,7 +48,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl
private static final String SUGGEST_PARAM_GLOBAL = "contain_global";
// 返回智能搜索词的数量
private static final int SMART_SUGGESTION_TERM_COUNT = 5;
private static final int SMART_SUGGESTION_TERM_COUNT = 3;
@Autowired
private SearchCommonService searchCommonService;
... ... @@ -262,7 +262,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl
if(!queryWord.equalsIgnoreCase(keyword)) {
count++;
resultTerms.add(keyword);
// 最多返回个推荐词
// 最多返回个推荐词
if (count == SMART_SUGGESTION_TERM_COUNT) {
break;
}
... ...