Skip to content

Commit 2387973

Browse files
authored
Fix separator token code samples (#640)
They were copy-pasted from dictionary samples by the looks of it.
1 parent 52b71ff commit 2387973

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.code-samples.meilisearch.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -599,37 +599,37 @@ reset_faceting_settings_1: |-
599599
get_separator_tokens_1: |-
600600
let task: TaskInfo = client
601601
.index('articles')
602-
.get_dictionary()
602+
.get_separator_tokens()
603603
.await
604604
.unwrap();
605605
update_separator_tokens_1: |-
606606
let task: TaskInfo = client
607607
.index('articles')
608-
.set_dictionary(['|', '…'])
608+
.set_separator_tokens(&vec!['|'.to_string(), '…'.to_string()])
609609
.await
610610
.unwrap();
611611
reset_separator_tokens_1: |-
612612
let task: TaskInfo = client
613613
.index('articles')
614-
.reset_dictionary()
614+
.reset_separator_tokens()
615615
.await
616616
.unwrap();
617617
get_non_separator_tokens_1: |-
618618
let task: TaskInfo = client
619619
.index('articles')
620-
.get_dictionary()
620+
.get_non_separator_tokens()
621621
.await
622622
.unwrap();
623623
update_non_separator_tokens_1: |-
624624
let task: TaskInfo = client
625625
.index('articles')
626-
.set_dictionary(['@', '#'])
626+
.set_non_separator_tokens(&vec!['@'.to_string(), '#'.to_string()])
627627
.await
628628
.unwrap();
629629
reset_non_separator_tokens_1: |-
630630
let task: TaskInfo = client
631631
.index('articles')
632-
.reset_dictionary()
632+
.reset_non_separator_tokens()
633633
.await
634634
.unwrap();
635635
get_dictionary_1: |-

0 commit comments

Comments
 (0)