Skip to content

Commit

Permalink
update .code-sample.meilisearch.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JWSong committed Jun 29, 2024
1 parent 4aa4959 commit 41a3532
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ update_settings_1: |-
"release_date"
])
.with_synonyms(synonyms)
.with_typo_tolerance(typo_tolerance);
.with_typo_tolerance(typo_tolerance)
.with_search_cutoff(5);
let task: TaskInfo = client
.index("movies")
Expand Down Expand Up @@ -1626,6 +1627,24 @@ reset_proximity_precision_settings_1: |-
.reset_proximity_precision()
.await
.unwrap();
get_search_cutoff_1: |-
let search_cutoff_ms: String = client
.index("books")
.get_search_cutoff_ms()
.await
.unwrap();
update_search_cutoff_1: |-
let task: TaskInfo = client
.index("books")
.set_search_cutoff_ms(Some(0))
.await
.unwrap();
reset_search_cutoff_1: |-
let task: TaskInfo = client
.index("books")
.reset_search_cutoff_ms()
.await
.unwrap();
create_snapshot_1: |-
client
.create_snapshot()
Expand Down

0 comments on commit 41a3532

Please sign in to comment.