Skip to content

Commit

Permalink
Add prefix search setting code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Jan 21, 2025
1 parent 9d50c15 commit 538579a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,24 @@ reset_facet_search_settings_1: |-
.reset_facet_search()
.await
.unwrap();
get_prefix_search_settings_1: |-
let prefix_search: String = client
.index(INDEX_UID)
.get_prefix_search()
.await
.unwrap();
update_prefix_search_settings_1: |-
let task: TaskInfo = client
.index(INDEX_UID)
.set_prefix_search("disabled".to_string())
.await
.unwrap();
reset_prefix_search_settings_1: |-
let task: TaskInfo = client
.index(INDEX_UID)
.reset_prefix_search()
.await
.unwrap();
get_search_cutoff_1: |-
let search_cutoff_ms: String = client
.index("movies")
Expand Down

0 comments on commit 538579a

Please sign in to comment.