From 41a35327b3d89971644b35b12c5d50c197eb0455 Mon Sep 17 00:00:00 2001 From: JWSong Date: Sun, 30 Jun 2024 03:30:31 +0900 Subject: [PATCH] update .code-sample.meilisearch.yaml --- .code-samples.meilisearch.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 7d96cf6c..a5cb6fd3 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -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") @@ -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()