mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
提交
This commit is contained in:
@@ -439,7 +439,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
|||||||
timeLimit.gte(second);
|
timeLimit.gte(second);
|
||||||
boolQuery.filter(timeLimit);
|
boolQuery.filter(timeLimit);
|
||||||
}
|
}
|
||||||
|
System.out.println(boolQuery.toString());
|
||||||
return boolQuery;
|
return boolQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -623,6 +623,8 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
|||||||
List<CourseFullText> list=new ArrayList<>();
|
List<CourseFullText> list=new ArrayList<>();
|
||||||
|
|
||||||
ObjectMapper mapper=new ObjectMapper();
|
ObjectMapper mapper=new ObjectMapper();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SearchResponse response = restHighLevelClient.search(searchRequest, RequestOptions.DEFAULT);
|
SearchResponse response = restHighLevelClient.search(searchRequest, RequestOptions.DEFAULT);
|
||||||
SearchHits hits = response.getHits();
|
SearchHits hits = response.getHits();
|
||||||
|
|||||||
Reference in New Issue
Block a user