Returns low-level information about the Lucene segments in index shards
For data streams, the API returns information about the backing indices. IMPORTANT: 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 the index segments API.
Query parameters
-
bytes string
The unit used to display byte values.
Values are
b
,kb
,mb
,gb
,tb
, orpb
. -
local boolean
If
true
, the request computes the list of selected nodes from the local cluster state. Iffalse
the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.
GET /_cat/segments
curl \
-X GET http://api.example.com/_cat/segments
Response examples (200)
[
{
"index": "string",
"shard": "string",
"prirep": "string",
"ip": "string",
"id": "string",
"segment": "string",
"generation": "string",
"docs.count": "string",
"docs.deleted": "string",
"": 42.0,
"committed": "string",
"searchable": "string",
"version": "string",
"compound": "string"
}
]