mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
增加一个排序
This commit is contained in:
@@ -461,6 +461,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
|||||||
sourceBuilder.sort("publishTime",SortOrder.DESC);
|
sourceBuilder.sort("publishTime",SortOrder.DESC);
|
||||||
}else if(paras.getOrderType()==2) {
|
}else if(paras.getOrderType()==2) {
|
||||||
sourceBuilder.sort("studies",SortOrder.DESC);
|
sourceBuilder.sort("studies",SortOrder.DESC);
|
||||||
|
sourceBuilder.sort("publishTime",SortOrder.DESC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//sourceBuilder.sort("isTop",SortOrder.DESC);
|
//sourceBuilder.sort("isTop",SortOrder.DESC);
|
||||||
|
|||||||
Reference in New Issue
Block a user