Files
elasticsearch-js/docs/reference-cat-indices.asciidoc
2024-12-05 14:46:51 -06:00

77 lines
4.7 KiB
Plaintext

[[reference-cat-indices]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
=== client.cat.indices
Get index information. Returns high-level information about indices in a cluster, including backing indices for data streams. Use this request to get the following information for each index in a cluster: - shard count - document count - deleted document count - primary store size - total store size of all shards, including shard replicas These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs. CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use an index endpoint.
{ref}/cat-indices.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(CatIndicesRequest, options?): Promise<CatIndicesResponse>
----
[discrete]
==== CatIndicesRequest
[pass]
++++
<pre>
++++
interface CatIndicesRequest extends CatCatRequestBase {
index?: <<Indices>>
bytes?: <<Bytes>>
expand_wildcards?: <<ExpandWildcards>>
health?: <<HealthStatus>>
include_unloaded_segments?: boolean
pri?: boolean
time?: <<TimeUnit>>
}
[pass]
++++
</pre>
++++
[discrete]
==== CatIndicesResponse
[pass]
++++
<pre>
++++
type CatIndicesResponse = CatIndicesIndicesRecord[]
[pass]
++++
</pre>
++++