feat(手机端): 搜索模块

优化搜索操作
master
hequan_waynaqua 4 years ago
parent e6f448ac9e
commit 670e213e64

@ -15,9 +15,13 @@ public class SearchVO {
private Integer brandId;
private Boolean isNew;
private Boolean isHot;
private Boolean filterNew;
private Boolean filterHot;
private Boolean isSales;
private Boolean isPrice;

@ -93,7 +93,9 @@ public class SearchController extends BaseController {
}
// 按热门商品
if (isHot) {
searchSourceBuilder.sort(new FieldSortBuilder("isHot").order(SortOrder.DESC));
// searchSourceBuilder.sort(new FieldSortBuilder("isHot").order(SortOrder.DESC));
MatchQueryBuilder filterQuery1 = QueryBuilders.matchQuery("isHot", true);
searchSourceBuilder.postFilter(filterQuery1);
}
// 按新品
if (isNew) {

Loading…
Cancel
Save