Open gibbz00 opened 1 year ago
Hey @gibbz00 👋
I moved your issue to the appropriate GitHub repository as it is related to the meilisearch-rust SDK. We indeed use synchronous and asynchronous operations on the Meilisearch side and it should indeed return primary key issues when it is returned synchronously. However, I think the primary key issues are asynchronous and you should probably verify that the task has been processed in the tasks queue first.
Hii :)
I moved your issue to the appropriate GitHub repository as it is related to the meilisearch-rust SDK.
Awesome, thanks for picking this up.
However, I think the primary key issues are asynchronous and you should probably verify that the task has been processed in the tasks queue first.
I did, I'm using wait_for_completion
in the given code example, and the logs confirm this usage with A batch of tasks was successfully completed.
Hello @gibbz00 thanks for the report I tagged it as bug. PR are welcome to fix it 😊
Source
Cargo test
Log
Notice how
A batch of tasks was successfully completed.
is not preceded bydocument addition done
when the batch contained a document with a single quote in the primary key.Expected behavior
Call to
index.add_document
should return andinvalid_document_id
error, preferably explaining that the single quote is an invalid error.