text/csv bulk insert endpoint does not support booleans #3572
Labels
enhancement
New feature or improvement
impacts docs
This issue involves changes in the Meilisearch's documentation
v1.2.0
PRs/issues solved in v1.2.0 released on 2023-06-05
Milestone
Describe the bug
The endpoint to bulk insert documents fails to parse boolean properties when uploading a CSV. The type annotation is appended to the key name and the value is a string.
To Reproduce
Steps to reproduce the behavior:
/indexes/:indexUID/documents?primaryKey=id
with the following body and a Content-Type oftext/csv
:/indexes/:indexUID/documents
active
key will be parsed asactive:boolean
with the value as a string.Expected behavior
Expecting Meilisearch to use the boolean type annotation when creating the document.
Meilisearch version: [e.g. v1.0.2]
Thanks everyone! Meilisearch is an excellent product.
Edit by the meilisearch team
Fixed by #3576
The associated spec is here; meilisearch/specifications#228
@meilisearch/docs-team Currently, we’re not super clear on the types we can specify in a csv document; https://docs.meilisearch.com/learn/core_concepts/documents.html#csv
With this addition, I guess it could be the occasion to list all the available types (string, number, boolean, null can’t be specified, but will happens if a field is empty)
The text was updated successfully, but these errors were encountered: