Meilisearch.Stats (meilisearch v0.20.0) View Source

Collection of functions used to retrive index stats.

MeiliSearch Documentation - Stats

Link to this section Summary

Functions

Get stats for given index

Get stats for all indexes

Link to this section Functions

Specs

Get stats for given index

Example

iex> Meilisearch.Stats.get("meilisearch_test")
{:ok, %{"fieldsFrequency" => %{}, "isIndexing" => false, "numberOfDocuments" => 0}}

Specs

Get stats for all indexes

Example

iex> Meilisearch.Stats.list()
{:ok,
  %{
    "databaseSize" => 143360,
    "indexes" => %{
      "meilisearch_test" => %{
        "fieldsFrequency" => %{},
        "isIndexing" => false,
        "numberOfDocuments" => 0
      }
    },
    "lastUpdate" => "2020-05-09T05:39:01.222761213Z"
  }
}