Authored by hugufei

top100去除寄售店铺商品

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