From 69874d83108de9dacd91be80eca8429ff914d5ef Mon Sep 17 00:00:00 2001 From: Calamari Date: Tue, 21 Feb 2023 17:25:21 +0100 Subject: [PATCH] Make README give working examples Currently the examples in README do not reflect how to use this fork of the package. This should fix it. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c8b8cb..6c1a5f2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ by adding `meilisearch` to your list of dependencies in `mix.exs`: ```elixir def deps do [ - {:meilisearch, "~> 0.25.2"} + {:meilisearch, "~> 0.25.0", git: "https://github.com/nutshell-lab/meilisearch-elixir"} ] end ``` @@ -21,10 +21,10 @@ end ```elixir # Create Index -Meilisearch.Index.create("index_name") +Meilisearch.Indexes.create("index_name") # Create Index and set primary key -Meilisearch.Index.create("index_name", primary_key: "key_name") +Meilisearch.Indexes.create("index_name", primary_key: "key_name") # Insert documents documents = [