Authored by hugufei

Merge branch 'recall_config' into 0510

... ... @@ -151,12 +151,12 @@ public class FunctionScoreSearchHelper {
if(StringUtils.isNotBlank(query)){
scorers.add(searchScorerFactory.getCsBrandKeyWordScorer(query));
}
// 7、添加特殊店铺的打分器
if(StringUtils.isNotBlank(query) && query.contains("adidas")){
scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.1f));
}else{
scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.6f));
}
// // 7、添加特殊店铺的打分器
// if(StringUtils.isNotBlank(query) && query.contains("adidas")){
// scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.05f));
// }else{
// scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.6f));
// }
return scorers;
}
... ...
... ... @@ -8,7 +8,7 @@ import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders;
public class CsBrandKeyWordScorer implements IScorer {
private static final float NEW_PRODUCT_WEIGHT = 10;
private static final float NEW_PRODUCT_WEIGHT = 20;
private String keyword;
public CsBrandKeyWordScorer(String keyword){
... ...