Authored by hugufei

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

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