java API 里的GetIndexRequest对象不包含 index的文档数量么
Elasticsearch | 作者 zj_likang | 发布于2019年11月23日 | 阅读数:2527
现需要对多个索引按 doc.count 进行一个排序展示,通过
GetIndexResponse getIndexResponse = client.indices().get(request, RequestOptions.DEFAULT); 获得的对象中,怎么找不到 index的doc.count
GetIndexResponse getIndexResponse = client.indices().get(request, RequestOptions.DEFAULT); 获得的对象中,怎么找不到 index的doc.count
4 个回复
zj_likang
赞同来自:
zj_likang
赞同来自:
我自己找到一个开源工具:
bboss 用来操作ES,很方便,可以支持多版本兼容
可以直接使用 rest 接口查询
使用方法见地址:
https://esdoc.bbossgroups.com/ ... a1api
初始化完成之后,可以直接使用封闭方法发起 http rest 查询
测试 代码如下:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
推荐官方high level api
caobo
赞同来自: