Authored by Gino Zhang

降低包含性别相关的推荐词的得分

... ... @@ -306,7 +306,7 @@ public class SearchRecommendServiceImpl implements ISearchRecommendService {
functionScoreQueryBuilder.add(QueryBuilders.termQuery("keyword.keyword_ik", "男"),
ScoreFunctionBuilders.weightFactorFunction(-5));
} else if (!termSet.contains("男") && !termSet.contains("女")) {
functionScoreQueryBuilder.add(QueryBuilders.termQuery("keyword.keyword_ik", Arrays.asList("男", "女")),
functionScoreQueryBuilder.add(QueryBuilders.termsQuery("keyword.keyword_ik", Arrays.asList("男", "女")),
ScoreFunctionBuilders.weightFactorFunction(-2));
}
... ...