mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26: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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user