Preserve Meilisearch’s result ranking #772
1 changed files with 6 additions and 2 deletions
|
@ -126,7 +126,11 @@ def run(["show-keys", master_key]) do
|
||||||
decoded = Jason.decode!(result.body)
|
decoded = Jason.decode!(result.body)
|
||||||
|
|
||||||
if decoded["results"] do
|
if decoded["results"] do
|
||||||
Enum.each(decoded["results"], fn %{"description" => desc, "key" => key} ->
|
Enum.each(decoded["results"], fn
|
||||||
|
%{"name" => name, "key" => key} ->
|
||||||
|
IO.puts("#{name}: #{key}")
|
||||||
|
|
||||||
|
%{"description" => desc, "key" => key} ->
|
||||||
IO.puts("#{desc}: #{key}")
|
IO.puts("#{desc}: #{key}")
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue