Authored by hugufei

/web/newShelveBatch固定30取5

... ... @@ -244,11 +244,11 @@ public class WebNewShelveServiceImpl implements IWebNewShelveService, Applicatio
searchParam.setFiter(newFilter);
//3)构造分页参数
searchParam.setOffset(0);
searchParam.setSize(viewNum * 2);
searchParam.setSize(30);
//4)构造排序
List<SortBuilder<?>> sortBuilders = new ArrayList<>();
sortBuilders.add(SortBuilders.fieldSort(searchSort.getSortField()).order(searchSort.getSortOrder()));
sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.salesNum).order(SortOrder.DESC));
sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.heatValue).order(SortOrder.DESC));
searchParam.setSortBuilders(sortBuilders);
//5)设置PC的返回字段
searchParam.setIncludeFields(webProductIndexBaseService.getWebProductIndexIncludeFields());
... ...