Authored by wangnan

helper fix

... ... @@ -97,7 +97,9 @@ public class HelperServiceImpl extends BaseService implements IHelperService, Ap
//5.配置Sort
List<SortBuilder> sortBuilders = new ArrayList<SortBuilder>();
sortBuilders.add(SortBuilders.fieldSort("isCustomerService").order(SortOrder.DESC));
if (paramMap.containsKey("showCustomerService") && StringUtils.isNotBlank(paramMap.get("showCustomerService")) && paramMap.get("showCustomerService").equals("Y")) {
sortBuilders.add(SortBuilders.fieldSort("isCustomerService").order(SortOrder.DESC));
}
sortBuilders.add(SortBuilders.fieldSort("_score").order(SortOrder.DESC));
searchParam.setSortBuilders(sortBuilders);
... ...