Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 1.34 KB

stats.md

File metadata and controls

76 lines (59 loc) · 1.34 KB

Stats

Stats gives extended information and metrics about indexes and the MeiliSearch database.

Get stat of an index

Get stats of an index.

Path Variables

Variable Description
index_uid The index UID

Example

Response: 200 Ok

{
  "numberOfDocuments": 19654,
  "isIndexing": false,
  "fieldsDistribution": {
    "poster": 19654,
    "release_date": 19654,
    "title": 19654,
    "id": 19654,
    "overview": 19654
  }
}

Get stats of all indexes

Get stats of all indexes.

Example

Response: 200 Ok

{
  "databaseSize": 447819776,
  "lastUpdate": "2019-11-15T11:15:22.092896Z",
  "indexes": {
    "movies": {
      "numberOfDocuments": 19654,
      "isIndexing": false,
      "fieldsDistribution": {
        "poster": 19654,
        "overview": 19654,
        "title": 19654,
        "id": 19654,
        "release_date": 19654
      }
    },
    "rangemovies": {
      "numberOfDocuments": 19654,
      "isIndexing": false,
      "fieldsDistribution": {
        "overview": 19654,
        "id": 19654,
        "title": 19654
      }
    }
  }
}