mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
ES搜索匹配调整
This commit is contained in:
@@ -188,7 +188,7 @@ public class CourseStudyElasticsearchImpl implements ICourseStudySearch{
|
||||
boolQuery.filter(QueryBuilders.wildcardQuery("courseName", "*"+words+"*"));
|
||||
}
|
||||
if(dto.getCourseType()!=null) {
|
||||
if(dto.getCourseType()==10) {
|
||||
if(dto.getCourseType()==10 || dto.getCourseType()==20) {
|
||||
int[] types=new int[] {10,20};
|
||||
boolQuery.filter(QueryBuilders.termsQuery("courseType",types));
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user