课程好评率查询

This commit is contained in:
lims1@hunktimes.com
2023-07-14 15:41:37 +08:00
parent aa00edef76
commit a9468e4536
2 changed files with 7 additions and 3 deletions

View File

@@ -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));