From 8da0c510b9c9fa5c4081d0abb917d204ca88d617 Mon Sep 17 00:00:00 2001 From: Mridula Date: Tue, 14 Oct 2025 17:14:51 +0100 Subject: [PATCH 1/2] Field level explanation added --- specification/cat/indices/types.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/cat/indices/types.ts b/specification/cat/indices/types.ts index c47cdc13ad..b43b8bb0a2 100644 --- a/specification/cat/indices/types.ts +++ b/specification/cat/indices/types.ts @@ -55,7 +55,11 @@ export class IndicesRecord { 'rep'?: string /** - * available docs + * The number of documents in the index, including hidden nested documents. + * For indices with `semantic_text` fields or other nested field types, this count + * includes the internal nested documents used for storing chunks and embeddings. + * To get the logical document count (excluding nested documents), use the `_count` + * API or `_cat/count` API instead. * @aliases dc,docsCount */ 'docs.count'?: string | null From 592a99b0a7ccd27b35c6cf823f6caaf49ed3ccdc Mon Sep 17 00:00:00 2001 From: Mridula Date: Tue, 14 Oct 2025 19:20:35 +0100 Subject: [PATCH 2/2] Update specification/cat/indices/types.ts Co-authored-by: Mike Pellegrini --- specification/cat/indices/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cat/indices/types.ts b/specification/cat/indices/types.ts index b43b8bb0a2..1052825ebd 100644 --- a/specification/cat/indices/types.ts +++ b/specification/cat/indices/types.ts @@ -57,7 +57,7 @@ export class IndicesRecord { /** * The number of documents in the index, including hidden nested documents. * For indices with `semantic_text` fields or other nested field types, this count - * includes the internal nested documents used for storing chunks and embeddings. + * includes the internal nested documents. * To get the logical document count (excluding nested documents), use the `_count` * API or `_cat/count` API instead. * @aliases dc,docsCount