...
|
...
|
@@ -200,10 +200,13 @@ public class SearchServiceHelper { |
|
|
}
|
|
|
|
|
|
// 全局降分品牌过滤
|
|
|
if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND))) {
|
|
|
boolFilter.mustNot(QueryBuilders.termQuery("isForbiddenSortBrand", 1));
|
|
|
// if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND))) {
|
|
|
// boolFilter.mustNot(QueryBuilders.termQuery("isForbiddenSortBrand", 1));
|
|
|
// }
|
|
|
if ("Y".equals(paramMap.get(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND)) && StringUtils.isNotBlank(paramMap.get("pageId"))){
|
|
|
boolFilter.mustNot(QueryBuilders.termQuery("forbiddenPageIds",paramMap.get("pageId")));
|
|
|
}
|
|
|
|
|
|
|
|
|
// 店铺
|
|
|
if (paramMap.containsKey(SearchRequestParams.PARAM_SEARCH_SHOP) && StringUtils.isNotBlank(paramMap.get(SearchRequestParams.PARAM_SEARCH_SHOP))
|
|
|
&& !SearchRequestParams.PARAM_SEARCH_SHOP.equals(filterParamName)) {
|
...
|
...
|
|