mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
提交
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user