更新时间:2024-07-02 GMT+08:00
Elasticsearch集群在Kibana如何查询索引数据
在Kibana可以通过API查询索引数据,命令如下:
GET indexname/_search
返回数据如下图所示:
图1 返回数据
![点击放大](https://support.huaweicloud.com/intl/zh-cn/css_faq/zh-cn_image_0000001960397701.png)
参数 |
描述 |
---|---|
“took” |
耗时几毫秒。 |
“time_out” |
是否超时。 |
“_shard” |
数据被拆到了5个分片上,搜索时使用了5个分片,5个分片都成功地返回了数据,失败了0个,跳过了0个。 |
“hits.total” |
查询结果的数量,3个document。 |
“max_score” |
就是document对于一个search的相关度的匹配分数,越相关,就越匹配,分数也越高。 |
“hits.hits” |
包含了匹配搜索的document的详细数据。 |
父主题: 开源搜索引擎咨询