Authored by hugufei

Merge branch 'recall_config' into 0510

... ... @@ -6,5 +6,6 @@ import java.util.List;
public class SpecialShopConstants {
public static final List<Integer> DOWNGRADE_SHOPIDS = Arrays.asList(3504);
public static final float DOWNGRADE_SHOP_WEIGHT = 0.8f;
}
... ...
... ... @@ -151,12 +151,8 @@ 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.05f));
// }else{
// scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, 0.6f));
// }
// 7、添加特殊店铺的打分器
scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, SpecialShopConstants.DOWNGRADE_SHOP_WEIGHT));
return scorers;
}
... ...