meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid type error in getting_started_add_documents_md

amaihoefner opened this issue · comments

Description
Trying to run the sample code in the quickstart section "Add documents" results in an invalid type error.

Expected behavior
movies.json is parsed and added to database.

Current behavior
The program panics with the following message:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: integer `2`, expected a string", line: 2, column: 8)', src/main.rs:24:65