Stats

Path Variables

  1. curl \
  2. -X GET 'http://localhost:7700/indexes/movies/stats'
  1. client.index('movies').getStats()
  1. client.index('movies').get_stats()
  1. $client->index('movies')->stats();
  1. client.index('movies').stats
  1. let stats: IndexStats = movies.get_stats().await.unwrap();

Response: 200 Ok

  1. {
  2. "numberOfDocuments": 19654,
  3. "isIndexing": false,
  4. "fieldsDistribution": {
  5. "poster": 19654,
  6. "title": 19654,
  7. "id": 19654,
  8. }
  9. }

Get stats of all indexes

  1. /stats

Example

  1. curl \
  2. -X GET 'http://localhost:7700/stats'
  1. client.stats()
  1. $client->stats();
  1. client.stats
  1. client.Stats().GetAll()
  1. let stats: ClientStats = client.get_stats().await.unwrap();

Response: 200 Ok

  1. {
  2. "databaseSize": 447819776,
  3. "lastUpdate": "2019-11-15T11:15:22.092896Z",
  4. "indexes": {
  5. "movies": {
  6. "numberOfDocuments": 19654,
  7. "poster": 19654,
  8. "overview": 19654,
  9. "title": 19654,
  10. "id": 19654,
  11. "release_date": 19654
  12. }
  13. },
  14. "rangemovies": {
  15. "numberOfDocuments": 19654,
  16. "isIndexing": false,
  17. "fieldsDistribution": {
  18. "overview": 19654,
  19. "id": 19654,
  20. "title": 19654
  21. }
  22. }
  23. }
  24. }