Authored by hugufei

Merge branch 'recall_config' into 0510

@@ -151,12 +151,12 @@ public class FunctionScoreSearchHelper { @@ -151,12 +151,12 @@ 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.1f));  
157 - }else{  
158 - scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.6f));  
159 - } 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 +// }
160 return scorers; 160 return scorers;
161 } 161 }
162 162
@@ -8,7 +8,7 @@ import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders; @@ -8,7 +8,7 @@ import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders;
8 8
9 public class CsBrandKeyWordScorer implements IScorer { 9 public class CsBrandKeyWordScorer implements IScorer {
10 10
11 - private static final float NEW_PRODUCT_WEIGHT = 10; 11 + private static final float NEW_PRODUCT_WEIGHT = 20;
12 private String keyword; 12 private String keyword;
13 13
14 public CsBrandKeyWordScorer(String keyword){ 14 public CsBrandKeyWordScorer(String keyword){