Showing
1 changed file
with
3 additions
and
1 deletions
@@ -97,7 +97,9 @@ public class HelperServiceImpl extends BaseService implements IHelperService, Ap | @@ -97,7 +97,9 @@ public class HelperServiceImpl extends BaseService implements IHelperService, Ap | ||
97 | 97 | ||
98 | //5.配置Sort | 98 | //5.配置Sort |
99 | List<SortBuilder> sortBuilders = new ArrayList<SortBuilder>(); | 99 | List<SortBuilder> sortBuilders = new ArrayList<SortBuilder>(); |
100 | - sortBuilders.add(SortBuilders.fieldSort("isCustomerService").order(SortOrder.DESC)); | 100 | + if (paramMap.containsKey("showCustomerService") && StringUtils.isNotBlank(paramMap.get("showCustomerService")) && paramMap.get("showCustomerService").equals("Y")) { |
101 | + sortBuilders.add(SortBuilders.fieldSort("isCustomerService").order(SortOrder.DESC)); | ||
102 | + } | ||
101 | sortBuilders.add(SortBuilders.fieldSort("_score").order(SortOrder.DESC)); | 103 | sortBuilders.add(SortBuilders.fieldSort("_score").order(SortOrder.DESC)); |
102 | searchParam.setSortBuilders(sortBuilders); | 104 | searchParam.setSortBuilders(sortBuilders); |
103 | 105 |
-
Please register or login to post a comment