termsQuery

This commit is contained in:
joshen@zcwytd.com
2023-10-20 10:49:47 +08:00
parent 2b5b883651
commit 69e9f1c403

View File

@@ -371,7 +371,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
//查询出例外人员创建的课程
if(params.getSysCreateAids()!=null && params.getSysCreateAids().length>0) {
BoolQueryBuilder exception =QueryBuilders.boolQuery();
exception.must(QueryBuilders.termQuery("sysCreateAid",params.getSysCreateAids()));
exception.must(QueryBuilders.termsQuery("sysCreateAid",params.getSysCreateAids()));
audience.should(exception);
}
audience.should(has);