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
.
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"
}
]