Showing
1 changed file
with
5 additions
and
2 deletions
@@ -200,8 +200,11 @@ public class SearchServiceHelper { | @@ -200,8 +200,11 @@ public class SearchServiceHelper { | ||
200 | } | 200 | } |
201 | 201 | ||
202 | // 全局降分品牌过滤 | 202 | // 全局降分品牌过滤 |
203 | - if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND))) { | ||
204 | - boolFilter.mustNot(QueryBuilders.termQuery("isForbiddenSortBrand", 1)); | 203 | +// if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND))) { |
204 | +// boolFilter.mustNot(QueryBuilders.termQuery("isForbiddenSortBrand", 1)); | ||
205 | +// } | ||
206 | + if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND)) && StringUtils.isNotBlank(paramMap.get("pageId"))){ | ||
207 | + boolFilter.mustNot(QueryBuilders.termQuery("forbiddenPageIds",paramMap.get("pageId"))); | ||
205 | } | 208 | } |
206 | 209 | ||
207 | // 店铺 | 210 | // 店铺 |
-
Please register or login to post a comment