API reference
Stats
The /stats route you gives extended information and metrics about indexes and the Meilisearch database.
The /stats
route gives extended information and metrics about indexes and the Meilisearch database.
Stats object
Name | Type | Description |
---|---|---|
databaseSize | Integer | Storage space claimed by Meilisearch and LMDB in bytes |
usedDatabaseSize | Integer | Storage space used by the database in bytes, excluding unused space claimed by LMDB |
lastUpdate | String | When the last update was made to the database in the RFC 3339 format |
indexes | Object | Object containing the statistics for each index found in the database |
numberOfDocuments | Integer | Total number of documents in an index |
numberOfEmbeddedDocuments | Integer | Total number of documents with at least one embedding |
numberOfEmbeddings | Integer | Total number of embeddings in an index |
isIndexing | Boolean | If true , the index is still processing documents and attempts to search will result in undefined behavior |
fieldDistribution | Object | Shows every field in the index along with the total number of documents containing that field in said index |
fieldDistribution
is not impacted by searchableAttributes
or displayedAttributes
. Even if a field is not displayed or searchable, it will still appear in the fieldDistribution
object.
Get stats of all indexes
GET
/stats
Get stats of all indexes.
Example
Response: 200 Ok
Get stats of an index
GET
/indexes/{index_uid}/stats
Get stats of an index.
Path parameters
Name | Type | Description |
---|---|---|
index_uid * | String | uid of the requested index |