...
|
...
|
@@ -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;
|
|
|
}
|
|
|
|
...
|
...
|
|