Authored by hugufei

模糊搜索减小个性化影响的因子

... ... @@ -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、添加线下可售商品打分器
... ...
... ... @@ -18,7 +18,7 @@ import com.yoho.search.service.scorer.IScorer;
public class FeatureFactorScorer implements IScorer {
private static final Double BASE_CONSTANT = 1.0D;
private static final Double FACTOR_CONSTANT = 0.8D;
private static final Double FACTOR_CONSTANT = 0.4D;
private QueryBuilder scoreFilter;
private String featureFactors;
... ...