mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 11:56:50 +08:00
合并异常-好评查询
This commit is contained in:
@@ -619,11 +619,10 @@ 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);
|
||||||
}
|
|
||||||
} else if (paras.getOrderType() == 3) {
|
} else if (paras.getOrderType() == 3) {
|
||||||
sourceBuilder.sort("score", SortOrder.DESC);
|
sourceBuilder.sort("score", SortOrder.DESC);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceBuilder.timeout(new TimeValue(60, TimeUnit.SECONDS));
|
sourceBuilder.timeout(new TimeValue(60, TimeUnit.SECONDS));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user