...
|
...
|
@@ -60,7 +60,7 @@ public class FunctionScoreSearchHelper { |
|
|
FunctionScoreQueryBuilder functionScoreQueryBuilder = new FunctionScoreQueryBuilder(queryBuilder);
|
|
|
// 将某个SKN展示到第一个
|
|
|
if (searchCommonHelper.isFirstProductSknSearch(paramMap)) {
|
|
|
functionScoreQueryBuilder.add(QueryBuilders.termQuery("productSkn", paramMap.get(SearchRequestParams.FIRST_PRODUCRSKN)),
|
|
|
functionScoreQueryBuilder.add(QueryBuilders.termsQuery("productSkn", paramMap.get(SearchRequestParams.FIRST_PRODUCRSKN).split(",")),
|
|
|
ScoreFunctionBuilders.weightFactorFunction(1000));
|
|
|
}
|
|
|
if (searchCommonHelper.isNeedPersonalSearch(paramMap)) {
|
...
|
...
|
|