...
|
...
|
@@ -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));
|
|
|
}
|
|
|
|
...
|
...
|
|