2013-11-15 09:14:39 +08:00
[[cat-count]]
2014-05-17 03:43:35 +08:00
== cat count
2013-11-15 09:14:39 +08:00
`count` provides quick access to the document count of the entire
cluster, or individual indices.
2015-07-15 00:14:09 +08:00
[source,sh]
2013-11-15 09:14:39 +08:00
--------------------------------------------------
% curl 192.168.56.10:9200/_cat/indices
green wiki1 3 0 10000 331 168.5mb 168.5mb
green wiki2 3 0 428 0 8mb 8mb
2016-03-01 20:39:54 +08:00
2013-11-15 09:14:39 +08:00
% curl 192.168.56.10:9200/_cat/count
1384314124582 19:42:04 10428
2016-03-01 20:39:54 +08:00
2013-11-15 09:14:39 +08:00
% curl 192.168.56.10:9200/_cat/count/wiki2
1384314139815 19:42:19 428
--------------------------------------------------
2016-03-01 20:39:54 +08:00
NOTE: The document count indicates the number of live documents and does not include deleted documents which have not yet been cleaned up by the merge process.