Meilisearch.Updates (meilisearch v0.20.0) View Source

Collection of functions used to get information about the progress of updates.

MeiliSearch Documentation - Updates

Link to this section Summary

Functions

Get the status of individual update for given index.

Get the status of all updates for given index.

Link to this section Functions

Link to this function

get(index_uid, update_id)

View Source

Specs

Get the status of individual update for given index.

Example

iex> Meilisearch.Updates.get("meilisearch_test", 1)
{:ok,
  %{
    "duration" => 0.013233943,
    "enqueuedAt" => "2020-05-30T03:27:57.462943453Z",
    "processedAt" => "2020-05-30T03:27:57.478393007Z",
    "status" => "processed",
    "type" => %{"name" => "DocumentsAddition", "number" => 1},
    "updateId" => 0
  }
}

Specs

Get the status of all updates for given index.

Example

iex> Meilisearch.Updates.list("meilisearch_test")
{:ok,
[
  %{
    "duration" => 0.013233943,
    "enqueuedAt" => "2020-05-30T03:27:57.462943453Z",
    "processedAt" => "2020-05-30T03:27:57.478393007Z",
    "status" => "processed",
    "type" => %{"name" => "DocumentsAddition", "number" => 1},
    "updateId" => 0
  }
]}