This commit is contained in:
daihh
2022-12-30 16:57:59 +08:00
parent 193c56c018
commit 20966f0921

View File

@@ -439,7 +439,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
timeLimit.gte(second);
boolQuery.filter(timeLimit);
}
System.out.println(boolQuery.toString());
return boolQuery;
}
@@ -623,6 +623,8 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
List<CourseFullText> list=new ArrayList<>();
ObjectMapper mapper=new ObjectMapper();
SearchResponse response = restHighLevelClient.search(searchRequest, RequestOptions.DEFAULT);
SearchHits hits = response.getHits();