Authored by hugufei

使用新老版本a/b,并且去除老的个性化逻辑的断码降权

... ... @@ -190,7 +190,7 @@ public class FunctionScoreSearchHelper {
// 4、first_product_skn
scorers.add(searchScorerFactory.getFirstProductSknScorer(paramMap));
// 5、断码商品
scorers.add(searchScorerFactory.getBreakSizeProductScorer(paramMap));
//scorers.add(searchScorerFactory.getBreakSizeProductScorer(paramMap));
// 6、基于向量的个性化打分
scorers.add(this.getPersonalVectorFeatureScorer(persionalFilter, paramMap));
return scorers;
... ...
... ... @@ -28,10 +28,10 @@ public class ProductListSwitchService {
@Autowired
private FuzzySceneProductListService fuzzySceneProductListService;
// private boolean isAUser(int uid) {
// int tail = uid % 1024;
// return tail < 512 ? true : false;
// }
private boolean isAUser(int uid) {
int tail = uid % 1024;
return tail < 512 ? true : false;
}
/**
* 普通商品列表入口
... ... @@ -66,11 +66,11 @@ public class ProductListSwitchService {
return defaultProductListService.productListForDefaultPersional(paramMap);
}
// // 5、个性化版本A/B 测试
// int uid = searchCommonHelper.getUid(paramMap);
// if(uid>0 && isAUser(uid)){
// return defaultProductListService.productListForDefaultPersional(paramMap);
// }
// 5个性化版本A/B 测试
int uid = searchCommonHelper.getUid(paramMap);
if(uid>0 && isAUser(uid)){
return defaultProductListService.productListForDefaultPersional(paramMap);
}
// 6、是否使用新的召回策略
boolean searchPersionalNewStrategyOpen = searchDynamicConfigService.searchPersionalNewStrategyOpen();
... ...