1. cat count

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-count.html

译文链接 : http://www.apache.wiki/display/Elasticsearch/cat+count

贡献者 : 那伊抹微笑

count 提供了快速获取整个集群,或者单独的索引的文档的数量的功能。

curl -XGET 'localhost:9200/_cat/count?v&pretty'

响应如下 :

epoch      timestamp count
1475868259 15:24:19  121

或者查看一个单独的索引 :

curl -XGET 'localhost:9200/_cat/count/twitter?v&pretty'

响应如下 :

epoch      timestamp count
1475868259 15:24:20  120

注意 :

该文档 count 显示了可用文档的数量,不会包括那些尚未被合并进程所清除的删除的文档。

Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""