String[] sortFieldStrings = sortField.split(",");
String[] sortOrderStrings = sortOrder.split(",");
for (int i=0, len=sortFieldStrings.length; i<len; i++) {
String sortFieldString = sortFieldStrings[i];
String sortOrderString = sortOrderStrings[i];
SortClause sortClause = new SortClause(sortFieldString, ORDER.valueOf(sortOrderString));
solrQuery.addOrUpdateSort(sortClause);
}
java sorl 多字段排序
最新推荐文章于 2024-04-07 15:36:45 发布