Skip to content

Commit 93d0d72

Browse files
committed
Add localized-attributes code-samples
1 parent d360cb5 commit 93d0d72

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,3 +732,13 @@ reset_proximity_precision_settings_1: |-
732732
client.index('books').reset_proximity_precision()
733733
search_parameter_reference_ranking_score_threshold_1: |-
734734
client.index('INDEX_NAME').search('badman', { 'rankingScoreThreshold': 0.2 })
735+
search_parameter_reference_locales_1: |-
736+
client.index('INDEX_NAME').search('進撃の巨人', { 'locales': ['jpn'] })
737+
get_localized_attribute_settings_1: |-
738+
client.index('INDEX_NAME').get_localized_attributes()
739+
update_localized_attribute_settings_1: |-
740+
client.index('INDEX_NAME').update_localized_attributes([
741+
{'attribute_patterns': ['*_ja'], 'locales': ['jpn']}
742+
])
743+
reset_localized_attribute_settings_1: |-
744+
client.index('INDEX_NAME').reset_localized_attributes()

0 commit comments

Comments
 (0)