...
|
...
|
@@ -52,7 +52,7 @@ public class FunctionScoreSearchHelper { |
|
|
// 新品到着的个性化时间维度
|
|
|
private static final FirstShelveTimeScore NEW_REC_FIRST_SHELVE_SCORE = new FirstShelveTimeScore(4, 1, 3);
|
|
|
// 模糊搜索的个性化时间维度
|
|
|
private static final FirstShelveTimeScore FUZZY_FIRST_SHELVE_SCORE = new FirstShelveTimeScore(180, 150, 30);
|
|
|
private static final FirstShelveTimeScore FUZZY_FIRST_SHELVE_SCORE = new FirstShelveTimeScore(90, 60, 30);
|
|
|
|
|
|
/**
|
|
|
* 添加打分规则
|
...
|
...
|
@@ -152,7 +152,11 @@ public class FunctionScoreSearchHelper { |
|
|
scorers.add(searchScorerFactory.getCsBrandKeyWordScorer(query));
|
|
|
}
|
|
|
// 7、添加特殊店铺的打分器
|
|
|
scorers.add(searchScorerFactory.getSpecialShopScorer(SpecialShopConstants.DOWNGRADE_SHOPIDS, SpecialShopConstants.DOWNGRADE_SHOPID_WEIGHT));
|
|
|
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));
|
|
|
}
|
|
|
return scorers;
|
|
|
}
|
|
|
|
...
|
...
|
|