...
|
...
|
@@ -51,7 +51,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(90, 60, 30);
|
|
|
private static final FirstShelveTimeScore FUZZY_FIRST_SHELVE_SCORE = new FirstShelveTimeScore(90, 60, 30);
|
|
|
|
|
|
/**
|
|
|
* 添加打分规则
|
...
|
...
|
@@ -140,8 +140,8 @@ public class FunctionScoreSearchHelper { |
|
|
// 2、获取通用打分器
|
|
|
scorers.addAll(this.getCommonScorers(persionalFilter, paramMap));
|
|
|
// 3、添加首次上架时间的打分器
|
|
|
//scorers.add(searchScorerFactory.getFirstShelveTimeScorer(FUZZY_FIRST_SHELVE_SCORE));
|
|
|
scorers.add(searchScorerFactory.getNewProductScorer(90));
|
|
|
scorers.add(searchScorerFactory.getFirstShelveTimeScorer(FUZZY_FIRST_SHELVE_SCORE));
|
|
|
//scorers.add(searchScorerFactory.getNewProductScorer(90));
|
|
|
// 4、添加频道搜索
|
|
|
scorers.add(searchScorerFactory.getChannelSearchScorer(paramMap));
|
|
|
// 5、添加线下可售商品打分器
|
...
|
...
|
|