mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -188,7 +188,7 @@ public class CourseStudyElasticsearchImpl implements ICourseStudySearch{
|
|||||||
boolQuery.filter(QueryBuilders.wildcardQuery("courseName", "*"+words+"*"));
|
boolQuery.filter(QueryBuilders.wildcardQuery("courseName", "*"+words+"*"));
|
||||||
}
|
}
|
||||||
if(dto.getCourseType()!=null) {
|
if(dto.getCourseType()!=null) {
|
||||||
if(dto.getCourseType()==10) {
|
if(dto.getCourseType()==10 || dto.getCourseType()==20) {
|
||||||
int[] types=new int[] {10,20};
|
int[] types=new int[] {10,20};
|
||||||
boolQuery.filter(QueryBuilders.termsQuery("courseType",types));
|
boolQuery.filter(QueryBuilders.termsQuery("courseType",types));
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Reference in New Issue
Block a user