Meilisearch.Updates (meilisearch v0.20.0) View Source
Collection of functions used to get information about the progress of 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
Specs
get(String.t(), String.t() | integer()) :: Meilisearch.HTTP.response()
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
list(String.t()) :: Meilisearch.HTTP.response()
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
}
]}