Authored by wangnan9279

ufo

... ... @@ -151,6 +151,7 @@ public class UfoSearchQueryHelper extends BaseService {
List<String> filteredFieldNames = new ArrayList<String>();
String order = this.getLegalOrder(paramMap);
if (StringUtils.isBlank(order)) {
sortBuilders.add(SortBuilders.fieldSort(UfoProductIndexEsField.orderBy).order(SortOrder.DESC));
return sortBuilders;
}
String[] sortTypes = order.split(",");
... ... @@ -212,6 +213,7 @@ public class UfoSearchQueryHelper extends BaseService {
} else {
sortBuilders.add(SortBuilders.fieldSort(fieldName).order(sortOrder));
}
sortBuilders.add(SortBuilders.fieldSort(UfoProductIndexEsField.orderBy).order(SortOrder.DESC));
}
private void addMustIntTermsQuery(BoolQueryBuilder boolFilter, Map<String, String> paramMap, String filterParamName, String paramName, String esField) {
... ...