Authored by hugufei

活动不推寄售店铺的商品

@@ -7,6 +7,7 @@ import com.yoho.search.base.utils.EventReportEnum; @@ -7,6 +7,7 @@ import com.yoho.search.base.utils.EventReportEnum;
7 import com.yoho.search.base.utils.ISearchConstants; 7 import com.yoho.search.base.utils.ISearchConstants;
8 import com.yoho.search.base.utils.ProductIndexEsField; 8 import com.yoho.search.base.utils.ProductIndexEsField;
9 import com.yoho.search.aop.cache.SearchCacheAble; 9 import com.yoho.search.aop.cache.SearchCacheAble;
  10 +import com.yoho.search.common.SearchRequestParams;
10 import com.yoho.search.core.es.model.SearchParam; 11 import com.yoho.search.core.es.model.SearchParam;
11 import com.yoho.search.core.es.model.SearchResult; 12 import com.yoho.search.core.es.model.SearchResult;
12 import com.yoho.search.core.es.utils.IgnoreSomeException; 13 import com.yoho.search.core.es.utils.IgnoreSomeException;
@@ -17,6 +18,7 @@ import com.yoho.search.service.helper.AggCommonHelper; @@ -17,6 +18,7 @@ import com.yoho.search.service.helper.AggCommonHelper;
17 import com.yoho.search.service.helper.*; 18 import com.yoho.search.service.helper.*;
18 19
19 import com.yoho.search.service.recall.beans.cache.SknReturnInfoCacheBean; 20 import com.yoho.search.service.recall.beans.cache.SknReturnInfoCacheBean;
  21 +import com.yoho.search.service.recall.config.SpecialShopConstants;
20 import com.yoho.search.service.recall.models.common.ParamQueryFilter; 22 import com.yoho.search.service.recall.models.common.ParamQueryFilter;
21 import org.apache.commons.collections.MapUtils; 23 import org.apache.commons.collections.MapUtils;
22 import org.apache.commons.lang.StringUtils; 24 import org.apache.commons.lang.StringUtils;
@@ -254,6 +256,7 @@ public class AggProductListService implements ApplicationEventPublisherAware { @@ -254,6 +256,7 @@ public class AggProductListService implements ApplicationEventPublisherAware {
254 } 256 }
255 257
256 private BrandProductRequest buildBrandProductRequest(Map<String, String> paramMap, int totalViewNum) throws Exception{ 258 private BrandProductRequest buildBrandProductRequest(Map<String, String> paramMap, int totalViewNum) throws Exception{
  259 + paramMap.put(SearchRequestParams.PARAM_SEARCH_NOT_SHOP_ID, SpecialShopConstants.JISHOU_SHOP_ID.toString());
257 QueryBuilder query = searchServiceHelepr.constructQueryBuilder(paramMap); 260 QueryBuilder query = searchServiceHelepr.constructQueryBuilder(paramMap);
258 BoolQueryBuilder filter = searchServiceHelepr.constructFilterBuilder(paramMap, null); 261 BoolQueryBuilder filter = searchServiceHelepr.constructFilterBuilder(paramMap, null);
259 ParamQueryFilter paramQueryFilter = new ParamQueryFilter(query, filter); 262 ParamQueryFilter paramQueryFilter = new ParamQueryFilter(query, filter);