Overview
Storage API is an API for managing Fess storage. You can view index storage usage and perform optimization operations.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET | / | Get storage information |
| POST | /optimize | Optimize index |
| POST | /flush | Flush index |
Get Storage Information
Request
Response
Response Fields
| Field | Description |
|---|---|
indices | Index list |
name | Index name |
status | Index status (open/close) |
health | Health status (green/yellow/red) |
docsCount | Document count |
docsDeleted | Deleted document count |
storeSize | Storage size |
primariesStoreSize | Primary shard size |
shards | Shard count |
replicas | Replica count |
totalStoreSize | Total storage size |
totalDocsCount | Total document count |
clusterHealth | Cluster health |
diskUsage | Disk usage information |
Optimize Index
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
index | No | Index name (all indices if not specified) |
maxNumSegments | No | Maximum number of segments (default: 1) |
onlyExpungeDeletes | No | Only remove deleted documents (default: false) |
flush | No | Flush after optimization (default: true) |
Response
Flush Index
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
index | No | Index name (all indices if not specified) |
Response
Usage Examples
Get Storage Information
Optimize All Indices
Optimize Specific Index
Expunge Deleted Documents
Flush Index
Reference
Admin API Overview - Admin API Overview
SystemInfo API - System Info API
Storage - Storage Management Guide