feat(手机端): 搜索模块

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

@ -18,6 +18,10 @@ public class SearchVO {
private Boolean isHot; private Boolean isHot;
private Boolean filterNew;
private Boolean filterHot;
private Boolean isSales; private Boolean isSales;
private Boolean isPrice; private Boolean isPrice;

@ -93,7 +93,9 @@ public class SearchController extends BaseController {
} }
// 按热门商品 // 按热门商品
if (isHot) { 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) { if (isNew) {

Loading…
Cancel
Save