...
|
...
|
@@ -53,6 +53,8 @@ public class FunctionScoreSearchHelper { |
|
|
private static final FirstShelveTimeScore COMMON_FIRST_SHELVE_SCORE = new FirstShelveTimeScore(30, 7, 23);
|
|
|
// 新品到着的个性化时间维度
|
|
|
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 float BRAND_INCREASE_SCORE_WEIGHT = 1.1f;// 品类列表默认针对某些品牌加分
|
|
|
private static final float BRAND_SORT_INCREASE_SCORE_WEIGHT = 1.1f; // 针对特定的【品牌+品类】加分
|
...
|
...
|
@@ -109,7 +111,9 @@ public class FunctionScoreSearchHelper { |
|
|
// 3、针对首次上架时间打分
|
|
|
if (searchCommonHelper.isNewRecPageDefault(paramMap)) {
|
|
|
this.addFirstShelveTimeScore(functionScoreQueryBuilder, getNewArrivalPageShelveTimeScore());
|
|
|
} else {
|
|
|
} else if (searchCommonHelper.isFuzzySearchPageDefault(paramMap)) {
|
|
|
this.addFirstShelveTimeScore(functionScoreQueryBuilder, FUZZY_FIRST_SHELVE_SCORE);
|
|
|
}else {
|
|
|
this.addFirstShelveTimeScore(functionScoreQueryBuilder, getOtherPageShelveTimeScore());
|
|
|
}
|
|
|
// 4、针对断码率高的商品降分
|
...
|
...
|
|