Showing
1 changed file
with
1 additions
and
1 deletions
@@ -78,7 +78,7 @@ public class ShopListService { | @@ -78,7 +78,7 @@ public class ShopListService { | ||
78 | // 2.1 全球购得分减半 | 78 | // 2.1 全球购得分减半 |
79 | FilterFunctionBuilder[] filterFunctionBuilders = new FilterFunctionBuilder[3]; | 79 | FilterFunctionBuilder[] filterFunctionBuilders = new FilterFunctionBuilder[3]; |
80 | filterFunctionBuilders[0] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"), ScoreFunctionBuilders.weightFactorFunction(0.5f)); | 80 | filterFunctionBuilders[0] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"), ScoreFunctionBuilders.weightFactorFunction(0.5f)); |
81 | - filterFunctionBuilders[1] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.isUfo, "Y"), ScoreFunctionBuilders.weightFactorFunction(0.5f)); | 81 | + filterFunctionBuilders[1] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.isUfo, "Y"), ScoreFunctionBuilders.weightFactorFunction(0.6f)); |
82 | filterFunctionBuilders[2] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.csBrandKeyword, keyword), ScoreFunctionBuilders.weightFactorFunction(10f)); | 82 | filterFunctionBuilders[2] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.csBrandKeyword, keyword), ScoreFunctionBuilders.weightFactorFunction(10f)); |
83 | FunctionScoreQueryBuilder functionScoreQueryBuilder = new FunctionScoreQueryBuilder(queryBuilder, filterFunctionBuilders); | 83 | FunctionScoreQueryBuilder functionScoreQueryBuilder = new FunctionScoreQueryBuilder(queryBuilder, filterFunctionBuilders); |
84 | functionScoreQueryBuilder.boostMode(CombineFunction.MULTIPLY); | 84 | functionScoreQueryBuilder.boostMode(CombineFunction.MULTIPLY); |
-
Please register or login to post a comment