|
|
package com.yoho.search.service.scene.common;
|
|
|
|
|
|
import com.yoho.search.common.utils.SearchKeyWordUtils;
|
|
|
import com.yoho.search.models.SearchApiResult;
|
|
|
import com.yoho.search.service.base.SearchRequestParams;
|
|
|
|
...
|
...
|
@@ -40,7 +41,12 @@ public abstract class AbstractSceneService { |
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_ATTRIBUTE_NOT, "2");// 非赠品
|
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_NEEDSMALLSORT, "1");// 品类聚合时带上小分类
|
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_AGG_WITH_PARAM_BRAND, "Y");// 聚合时使用参数中自带的参数
|
|
|
// paramMap.put("sale", "Y");// 没用的参数
|
|
|
//关键词反转码
|
|
|
String keyword = SearchKeyWordUtils.getParamKeyword(paramMap, SearchRequestParams.PARAM_SEARCH_QUERY);//转码
|
|
|
if(!StringUtils.isBlank(keyword)){
|
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_QUERY, keyword);
|
|
|
paramMap.put("is_encode", "0");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
protected int getPage(Map<String, String> paramMap) {
|
...
|
...
|
|