...
|
...
|
@@ -76,7 +76,7 @@ public class ShopListServiceImpl implements IShopListService { |
|
|
}
|
|
|
queryBuilder.minimumShouldMatch("100%");
|
|
|
// 2.1 全球购得分减半
|
|
|
FilterFunctionBuilder[] filterFunctionBuilders = new FilterFunctionBuilder[1];
|
|
|
FilterFunctionBuilder[] filterFunctionBuilders = new FilterFunctionBuilder[2];
|
|
|
filterFunctionBuilders[0] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"), ScoreFunctionBuilders.weightFactorFunction(0.5f));
|
|
|
filterFunctionBuilders[1] = new FilterFunctionBuilder(QueryBuilders.termQuery(ProductIndexEsField.csBrandKeyword, keyword), ScoreFunctionBuilders.weightFactorFunction(10f));
|
|
|
FunctionScoreQueryBuilder functionScoreQueryBuilder = new FunctionScoreQueryBuilder(queryBuilder, filterFunctionBuilders);
|
...
|
...
|
|