mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,6 +624,8 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
|||||||
|
|
||||||
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();
|
||||||
//log.info("共查询到 : "+hits.getTotalHits());
|
//log.info("共查询到 : "+hits.getTotalHits());
|
||||||
|
|||||||
Reference in New Issue
Block a user