View Source Meilisearch.Dump (meilisearch_ex v1.1.2)

Manipulate Meilisearch dumps. Dumps API

Link to this section Summary

Functions

Trigger a dump creation in your Meilisearch instance. Meilisearch documentation

Link to this section Functions

@spec create(Tesla.Client.t()) ::
  {:ok, Meilisearch.SummarizedTask.t()} | {:error, Meilisearch.Client.error()}

Trigger a dump creation in your Meilisearch instance. Meilisearch documentation

examples

Examples

iex> client = Meilisearch.Client.new(endpoint: "http://localhost:7700", key: "master_key_test")
iex> Meilisearch.Dump.create(client)
{:ok, %{
  taskUid: 0,
  indexUid: nil,
  status: :enqueued,
  type: :dumpCreation,
  enqueuedAt: ~U[2021-08-12 10:00:00]
}}