Authored by hugufei

Merge branch 'recall_config' into 0510

@@ -6,5 +6,6 @@ import java.util.List; @@ -6,5 +6,6 @@ import java.util.List;
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 List<Integer> DOWNGRADE_SHOPIDS = Arrays.asList(3504);
  9 + public static final float DOWNGRADE_SHOP_WEIGHT = 0.8f;
9 10
10 } 11 }
@@ -151,12 +151,8 @@ public class FunctionScoreSearchHelper { @@ -151,12 +151,8 @@ public class FunctionScoreSearchHelper {
151 if(StringUtils.isNotBlank(query)){ 151 if(StringUtils.isNotBlank(query)){
152 scorers.add(searchScorerFactory.getCsBrandKeyWordScorer(query)); 152 scorers.add(searchScorerFactory.getCsBrandKeyWordScorer(query));
153 } 153 }
154 -// // 7、添加特殊店铺的打分器  
155 -// if(StringUtils.isNotBlank(query) && query.contains("adidas")){  
156 -// scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.05f));  
157 -// }else{  
158 -// scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.6f));  
159 -// } 154 + // 7、添加特殊店铺的打分器
  155 + scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, SpecialShopConstants.DOWNGRADE_SHOP_WEIGHT));
160 return scorers; 156 return scorers;
161 } 157 }
162 158