Showing
3 changed files
with
9 additions
and
13 deletions
@@ -48,11 +48,6 @@ public class FuzzySceneService extends AbstractSceneService { | @@ -48,11 +48,6 @@ public class FuzzySceneService extends AbstractSceneService { | ||
48 | return SearchPageIdDefine.PAGE_ID_SEARCH; | 48 | return SearchPageIdDefine.PAGE_ID_SEARCH; |
49 | } | 49 | } |
50 | 50 | ||
51 | - private void addParamsToParamMap(Map<String, String> paramMap) { | ||
52 | - paramMap.put(SearchRequestParams.PARAM_SEARCH_PAGEID, this.pageId()); | ||
53 | - paramMap.put("aggWithParamBrand", "Y"); | ||
54 | - } | ||
55 | - | ||
56 | /** | 51 | /** |
57 | * @1、返回商品列表 | 52 | * @1、返回商品列表 |
58 | * @2、数量太多则返回建议词 | 53 | * @2、数量太多则返回建议词 |
@@ -21,7 +21,6 @@ import com.yoho.search.service.servicenew.IProductIndexService; | @@ -21,7 +21,6 @@ import com.yoho.search.service.servicenew.IProductIndexService; | ||
21 | import com.yoho.search.service.servicenew.scene.common.AbstractSceneService; | 21 | import com.yoho.search.service.servicenew.scene.common.AbstractSceneService; |
22 | import com.yoho.search.service.servicenew.scene.common.SceneProductListService; | 22 | import com.yoho.search.service.servicenew.scene.common.SceneProductListService; |
23 | import com.yoho.search.service.servicenew.scene.common.SceneSelectionsService; | 23 | import com.yoho.search.service.servicenew.scene.common.SceneSelectionsService; |
24 | -import com.yoho.search.service.utils.SearchRequestParams; | ||
25 | import com.yoho.search.service.vo.SearchApiResult; | 24 | import com.yoho.search.service.vo.SearchApiResult; |
26 | 25 | ||
27 | @Service | 26 | @Service |
@@ -44,12 +43,7 @@ public class SortSceneService extends AbstractSceneService { | @@ -44,12 +43,7 @@ public class SortSceneService extends AbstractSceneService { | ||
44 | public String pageId() { | 43 | public String pageId() { |
45 | return SearchPageIdDefine.PAGE_ID_SORT; | 44 | return SearchPageIdDefine.PAGE_ID_SORT; |
46 | } | 45 | } |
47 | - | ||
48 | - private void addParamsToParamMap(Map<String, String> paramMap) { | ||
49 | - paramMap.put(SearchRequestParams.PARAM_SEARCH_PAGEID, this.pageId()); | ||
50 | - paramMap.put("aggWithParamBrand", "Y"); | ||
51 | - } | ||
52 | - | 46 | + |
53 | @Override | 47 | @Override |
54 | public SearchApiResult productList(Map<String, String> paramMap) { | 48 | public SearchApiResult productList(Map<String, String> paramMap) { |
55 | try { | 49 | try { |
@@ -4,12 +4,19 @@ import java.util.Map; | @@ -4,12 +4,19 @@ import java.util.Map; | ||
4 | import java.util.concurrent.ExecutorService; | 4 | import java.util.concurrent.ExecutorService; |
5 | import java.util.concurrent.Executors; | 5 | import java.util.concurrent.Executors; |
6 | 6 | ||
7 | +import com.yoho.search.service.utils.SearchRequestParams; | ||
7 | import com.yoho.search.service.vo.SearchApiResult; | 8 | import com.yoho.search.service.vo.SearchApiResult; |
8 | 9 | ||
9 | public abstract class AbstractSceneService { | 10 | public abstract class AbstractSceneService { |
10 | - | 11 | + |
11 | protected static ExecutorService executorService = Executors.newFixedThreadPool(500); | 12 | protected static ExecutorService executorService = Executors.newFixedThreadPool(500); |
12 | 13 | ||
14 | + protected void addParamsToParamMap(Map<String, String> paramMap) { | ||
15 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_PAGEID, this.pageId()); | ||
16 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND, "Y");// 屏蔽参数 | ||
17 | + paramMap.put("aggWithParamBrand", "Y");// 聚合品牌只取参数中的brand聚合 | ||
18 | + } | ||
19 | + | ||
13 | public abstract String pageId(); | 20 | public abstract String pageId(); |
14 | 21 | ||
15 | public abstract SearchApiResult productList(Map<String, String> paramMap); | 22 | public abstract SearchApiResult productList(Map<String, String> paramMap); |
-
Please register or login to post a comment