Authored by hugufei

top100去除寄售店铺商品

@@ -5,7 +5,8 @@ import java.util.List; @@ -5,7 +5,8 @@ import java.util.List;
5 5
6 public class SpecialShopConstants { 6 public class SpecialShopConstants {
7 7
8 - public static final List<Integer> DOWNGRADE_SHOPIDS = Arrays.asList(3504); 8 + public static final Integer JISHOU_SHOP_ID = 3504;
  9 + public static final List<Integer> DOWNGRADE_SHOPIDS = Arrays.asList(JISHOU_SHOP_ID);
9 public static final float DOWNGRADE_SHOP_WEIGHT = 0.8f; 10 public static final float DOWNGRADE_SHOP_WEIGHT = 0.8f;
10 11
11 } 12 }
@@ -5,6 +5,7 @@ import java.util.List; @@ -5,6 +5,7 @@ import java.util.List;
5 import java.util.Map; 5 import java.util.Map;
6 6
7 import com.yoho.search.service.helper.ProductListHelper; 7 import com.yoho.search.service.helper.ProductListHelper;
  8 +import com.yoho.search.service.recall.config.SpecialShopConstants;
8 import org.apache.commons.lang.StringUtils; 9 import org.apache.commons.lang.StringUtils;
9 import org.elasticsearch.search.sort.SortBuilder; 10 import org.elasticsearch.search.sort.SortBuilder;
10 import org.elasticsearch.search.sort.SortBuilders; 11 import org.elasticsearch.search.sort.SortBuilders;
@@ -49,8 +50,7 @@ public class HotSaleRankSceneService { @@ -49,8 +50,7 @@ public class HotSaleRankSceneService {
49 paramMap.put(SearchRequestParams.PARAM_SEARCH_ISOUTLETS, "2");// 非奥莱 50 paramMap.put(SearchRequestParams.PARAM_SEARCH_ISOUTLETS, "2");// 非奥莱
50 paramMap.put(SearchRequestParams.PARAM_SEARCH_ATTRIBUTE_NOT, "2");// 非赠品 51 paramMap.put(SearchRequestParams.PARAM_SEARCH_ATTRIBUTE_NOT, "2");// 非赠品
51 paramMap.put(SearchRequestParams.PARAM_SEARCH_BREAKING, "0");// 非断码 52 paramMap.put(SearchRequestParams.PARAM_SEARCH_BREAKING, "0");// 非断码
52 - // paramMap.put(SearchRequestParams.PARAM_SEARCH_SHOWSOLDOUT, "1");//  
53 - // 显示延期显示的商品 53 + paramMap.put(SearchRequestParams.PARAM_SEARCH_NOT_SHOP_ID,SpecialShopConstants.JISHOU_SHOP_ID.toString());// 非寄售店铺
54 } 54 }
55 55
56 /** 56 /**