|
@@ -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
|
|