Skip to content

Commit f87fcf1

Browse files
committed
Add facet search setting code samples
1 parent 026fbbc commit f87fcf1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,24 @@ reset_proximity_precision_settings_1: |-
16811681
.reset_proximity_precision()
16821682
.await
16831683
.unwrap();
1684+
get_facet_search_settings_1: |-
1685+
let facet_search: bool = client
1686+
.index(INDEX_UID)
1687+
.get_facet_search()
1688+
.await
1689+
.unwrap();
1690+
update_facet_search_settings_1: |-
1691+
let task: TaskInfo = client
1692+
.index(INDEX_UID)
1693+
.set_facet_search(false)
1694+
.await
1695+
.unwrap();
1696+
reset_facet_search_settings_1: |-
1697+
let task: TaskInfo = client
1698+
.index(INDEX_UID)
1699+
.reset_facet_search()
1700+
.await
1701+
.unwrap();
16841702
get_search_cutoff_1: |-
16851703
let search_cutoff_ms: String = client
16861704
.index("movies")

0 commit comments

Comments
 (0)