Stats
Stats give information about indexes.
Stats Object
{
"numberOfDocuments": 2
}
Name | Type | Description |
---|---|---|
numberOfDocuments |
Integer | number of documents in the index |
Get index stats
Get statistics and information about an index
GET /indexes/{index_name}/stats
Path parameters
Name | Type | Description |
---|---|---|
index_name |
String | name of the index |
Example
curl -XGET http://localhost:8882/indexes/my-first-index/stats
results = mq.index("my-first-index").get_stats()
Response: 200
{
"numberOfDocuments": 2
}