Closed
Description
In the documentation for update-non-seperator-tokens, examples for other languages correctly use the updateNonSeparatorTokens
method. However, the Rust example incorrectly uses the .set_dictionary
method.
The Rust example should instead use something like:
.set_non_separator_tokens(&vec!["@".to_string(), "#".to_string()])
This issue applies to all APIs under Separator tokens and Non-separator tokens, where Rust code currently references dictionary-related APIs.
Activity
ellnix commentedon Feb 1, 2025
That's pretty funny, someone messed up their copy-paste. I'll create a PR in the meilisearch-rust repository since those examples are pulled from there.
guimachiavelli commentedon Feb 4, 2025
@curquiza this is related to a rust code sample, do you want to transfer it to the correct repo?
curquiza commentedon Feb 5, 2025
Transferred ✅
For having done/reviewed at least 1 thousand code samples in 10 differents repo so in 10 different languages, I can say that's super easy to make a mistake 😂