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;
}
@@ -624,6 +624,8 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
ObjectMapper mapper=new ObjectMapper();
SearchResponse response = restHighLevelClient.search(searchRequest, RequestOptions.DEFAULT);
SearchHits hits = response.getHits();
//log.info("共查询到 "+hits.getTotalHits());