mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 18:36:51 +08:00
课程好评率查询
This commit is contained in:
@@ -622,7 +622,9 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
sourceBuilder.sort("publishTime",SortOrder.DESC);
|
||||
}else if(paras.getOrderType()==2) {
|
||||
sourceBuilder.sort("studies",SortOrder.DESC);
|
||||
}
|
||||
}else if (paras.getOrderType()==3){
|
||||
sourceBuilder.sort("score",SortOrder.DESC);
|
||||
}
|
||||
}
|
||||
|
||||
sourceBuilder.timeout(new TimeValue(60, TimeUnit.SECONDS));
|
||||
|
||||
Reference in New Issue
Block a user