Authored by hugufei

fix

... ... @@ -2,16 +2,18 @@ package com.yoho.search.recall.scene.constants;
public class CacheTimeConstants {
public static final int COMMON = 10 * 60;//通用缓存-10分钟
public static final int COMMON = 10 * 60;//通用缓存
public static final int BRAND_HEATVALUE = 2 * 60 * 60;//人气缓存
public static final int BRAND_NEW = 30 * 60;//新品-缓存
public static final int BRAND_PROMOTION= 30 * 60;//新开促销缓存
public static final int BRAND_REDUCE_PRICE = 30 * 60;//新降价缓存
public static final int BRAND_HEATVALUE = 1 * 60 * 60;//人气缓存
public static final int SORT_PRICE = 30 * 60;//品类价格带的缓存
public static final int BRAND_NEW = 1 * 60 * 60;//新品-缓存
public static final int BRAND_PROMOTION= 1 * 60 * 60;//新开促销缓存
public static final int SKN_INFO = 10 * 60;//缓存
public static final int BRAND_REDUCE_PRICE = 1 * 60 * 60;//新降价缓存
public static final int SORT_PRICE = 1 * 60 * 60;//品类价格带的缓存
public static final int SKN_INFO = 15 * 60;//SKN的缓存
}
... ...
... ... @@ -5,7 +5,7 @@ public class SknCountConstants {
/**
* 单次召回的商品数量
*/
public static final int COMMON = 60;
public static final int COMMON_HEAT_VALUE = 60;
public static final int FIRST_SKN = 1;
public static final int DIRECT_TRAIN = 20;
... ...
... ... @@ -29,7 +29,7 @@ public class CommonRecallRequestBuilder extends BaseRecallRequest {
//1.2) 直通车的召回
requests.add(this.buildDirectTrainRequest(paramQueryFilter, SknCountConstants.DIRECT_TRAIN));
//1.3) 人气的召回
requests.add(this.buildCommonRequest(paramQueryFilter, Math.min(2 * pageSize, SknCountConstants.COMMON)));
requests.add(this.buildCommonRequest(paramQueryFilter, Math.min(3 * pageSize, SknCountConstants.COMMON_HEAT_VALUE)));
//1.4) 新开店铺的召回
requests.add(this.buildNewShopRequest(paramQueryFilter, SknCountConstants.NEW_SHOP));
//1.5) 流量补偿的召回
... ...