From dd3bbfb15308b952c96028689fc12139fa3534d8 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Tue, 18 Apr 2017 07:22:29 +0530 Subject: [PATCH] doc: highlight that doc counts come from lucene (#23522) The docs don't clearly explain that the deleted doc count also comes from lucene. IMHO, it is worth highlighting this information separately, as a Note. Apart from that, there should be an official recommended alternative as well. --- docs/reference/cat/indices.asciidoc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/reference/cat/indices.asciidoc b/docs/reference/cat/indices.asciidoc index 2e9e311dda8..0c840071bb9 100644 --- a/docs/reference/cat/indices.asciidoc +++ b/docs/reference/cat/indices.asciidoc @@ -24,10 +24,17 @@ green open twitter2 nYFWZEO7TUiOjLQXBaYJpA 5 0 0 0 // TESTRESPONSE[s/u8FNjxh8Rfy_awN11oDKYQ|nYFWZEO7TUiOjLQXBaYJpA/.+/ _cat] We can tell quickly how many shards make up an index, the number of -docs at the Lucene level, including hidden docs (e.g., from nested types), -deleted docs, primary store size, and total store size (all shards including replicas). +docs, deleted docs, primary store size, and total store size (all shards including replicas). All these exposed metrics come directly from Lucene APIs. +*Notes:* + +1. As the number of documents and deleted documents shown in this are at the lucene level, +it includes all the hidden documents (e.g. from nested documents) as well. + +2. To get actual count of documents at the elasticsearch level, the recommended way +is to use either the <> or the <> + [float] [[pri-flag]] === Primaries