Authored by hugufei

召回的数量固定为一页人气最高的,一页随机的

... ... @@ -57,8 +57,8 @@ public class CommonPageRecallService extends BaseRecallService {
// 1、构造SearchParam
List<SearchParam> searchParams = new ArrayList<SearchParam>();
searchParams.add(this.buildFirstSknSearchParam(paramMap, 1));
searchParams.add(this.buildHeatValueDescSearchParam(paramMap, viewNum * 2));
searchParams.add(this.buildRandomSearchParam(paramMap, viewNum * 2));
searchParams.add(this.buildHeatValueDescSearchParam(paramMap, viewNum * 1));
searchParams.add(this.buildRandomSearchParam(paramMap, viewNum * 1));
// 2、查询es
List<SearchResult> searchResults = searchCommonService.doMutiSearch(ISearchConstants.INDEX_NAME_PRODUCT_INDEX, searchParams);
// 3、获取值
... ...