Skip to content

Commit 41a3532

Browse files
committed
update .code-sample.meilisearch.yaml
1 parent 4aa4959 commit 41a3532

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ update_settings_1: |-
337337
"release_date"
338338
])
339339
.with_synonyms(synonyms)
340-
.with_typo_tolerance(typo_tolerance);
340+
.with_typo_tolerance(typo_tolerance)
341+
.with_search_cutoff(5);
341342
342343
let task: TaskInfo = client
343344
.index("movies")
@@ -1626,6 +1627,24 @@ reset_proximity_precision_settings_1: |-
16261627
.reset_proximity_precision()
16271628
.await
16281629
.unwrap();
1630+
get_search_cutoff_1: |-
1631+
let search_cutoff_ms: String = client
1632+
.index("books")
1633+
.get_search_cutoff_ms()
1634+
.await
1635+
.unwrap();
1636+
update_search_cutoff_1: |-
1637+
let task: TaskInfo = client
1638+
.index("books")
1639+
.set_search_cutoff_ms(Some(0))
1640+
.await
1641+
.unwrap();
1642+
reset_search_cutoff_1: |-
1643+
let task: TaskInfo = client
1644+
.index("books")
1645+
.reset_search_cutoff_ms()
1646+
.await
1647+
.unwrap();
16291648
create_snapshot_1: |-
16301649
client
16311650
.create_snapshot()

0 commit comments

Comments
 (0)