1,hotkey 索引结构
{
"properties": {
"id": {
"type": "keyword"
},
"searchInput": {
"type": "keyword"
},
"createDate": {
"type": "keyword"
},
"searchType": {
"type": "keyword"
}
}
}
2 TopHitsAggregationBuilder
//设置要查询的索引
SearchRequest request = new SearchRequest().indices("hotkey");

本文介绍了在Java中使用Elasticsearch进行聚合查询时如何实现分页,讲解了hotkey索引结构、TopHitsAggregationBuilder的用法以及如何在Kibana中进行查询操作,最后展示了返回的数据结果。
最低0.47元/天 解锁文章
805





