Skip to content

Commit 1e5ac8e

Browse files
Striftcurquiza
andauthored
Add 1.12 code samples (#711)
* Add code samples * Add code samples for batches * Update .code-samples.meilisearch.yaml * Apply suggestions from code review --------- Co-authored-by: Clémentine <[email protected]>
1 parent f5f9a4f commit 1e5ac8e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ update_displayed_attributes_1: |-
288288
]);
289289
reset_displayed_attributes_1: |-
290290
$client->index('movies')->resetDisplayedAttributes();
291-
get_typo_tolerance_1:
291+
get_typo_tolerance_1: |-
292292
$client->index('books')->getTypoTolerance();
293293
update_typo_tolerance_1: |-
294294
$client->index('books')->updateTypoTolerance([
@@ -775,3 +775,19 @@ update_localized_attribute_settings_1: |-
775775
]);
776776
reset_localized_attribute_settings_1: |-
777777
$client->index('INDEX_NAME')->resetLocalizedAttributes();
778+
get_facet_search_settings_1: |-
779+
$client->index('INDEX_NAME')->getFacetSearch();
780+
update_facet_search_settings_1: |-
781+
$client->index('INDEX_NAME')->updateFacetSearch(false);
782+
reset_facet_search_settings_1: |-
783+
$client->index('INDEX_NAME')->resetFacetSearch();
784+
get_prefix_search_settings_1: |-
785+
$client->index('INDEX_NAME')->getPrefixSearch();
786+
update_prefix_search_settings_1: |-
787+
$client->index('INDEX_NAME')->updatePrefixSearch('disabled');
788+
reset_prefix_search_settings_1: |-
789+
$client->index('INDEX_NAME')->resetPrefixSearch();
790+
get_all_batches_1: |-
791+
$client->getBatches();
792+
get_batch_1: |-
793+
$client->getBatch(BATCH_UID);

0 commit comments

Comments
 (0)