Authored by hugufei

模糊搜索时仅线下可售商品降权

... ... @@ -145,6 +145,8 @@ public class FunctionScoreSearchHelper {
scorers.add(searchScorerFactory.getFirstShelveTimeScorer(FUZZY_FIRST_SHELVE_SCORE));
// 4、添加频道搜索
scorers.add(searchScorerFactory.getChannelSearchScorer(paramMap));
// 5、添加线下可售商品打分器
scorers.add(searchScorerFactory.getOfflineSaleOnlyScorer());
return scorers;
}
... ...
... ... @@ -106,4 +106,7 @@ public class SearchScorerFactory {
return new FeatureFactorScorer(scoreFilter, featureFactors, featureVersion);
}
public IScorer getOfflineSaleOnlyScorer() {
return new OfflineSaleOnlyScorer();
}
}
... ...