Updates

The updates route gives information about the progress of the asynchronous processes.

Get an update status

GET

  1. /indexes/:index_uid/updates/:updateId

Get the status of an update in a given index.

Path Variables

VariableDescription
index_uidThe index UID
updateIdThe update identifier

Example

  1. $ curl \
  2. -X GET 'http://localhost:7700/indexes/movies/updates/1'
  1. client.index('movies').getUpdateStatus(1)
  1. client.index('movies').get_update_status(1)
  1. $client->index('movies')->getUpdateStatus(1);
  1. index.get_update_status(1)
  1. client.Updates("movies").Get(0)
  1. let status: Status = progress.get_status().await.unwrap();

Response: 200 Ok

Here is an example response of an update that has been processed.

  1. {
  2. "status": "processed",
  3. "updateId": 1,
  4. "type": {
  5. "name": "DocumentsAddition",
  6. "number": 4
  7. },
  8. "duration": 0.076980613,
  9. "enqueuedAt": "2019-12-07T21:16:09.623944Z",
  10. "processedAt": "2019-12-07T21:16:09.703509Z"
  11. }

Get all update status

GET

  1. /indexes/:index_uid/updates

Get the status of all updates in a given index.

Path Variables

VariableDescription
index_uidThe index UID

Example

  1. $ curl \
  2. -X GET 'http://localhost:7700/indexes/movies/updates'
  1. client.index('movies').getAllUpdateStatus()
  1. client.index('movies').get_all_update_status()
  1. $client->index('movies')->getAllUpdateStatus();
  1. index.get_all_update_status
  1. client.Updates("movies").List()
  1. // unavailable for now

Response: 200 Ok

Here is an example response of updates that have been processed.

  1. [
  2. {
  3. "status": "processed",
  4. "updateId": 1,
  5. "type": {
  6. "name": "DocumentsAddition",
  7. "number": 4
  8. },
  9. "duration": 0.076980613,
  10. "enqueuedAt": "2019-12-07T21:16:09.623944Z",
  11. "processedAt": "2019-12-07T21:16:09.703509Z"
  12. }
  13. ]