Skip to content

Commit a0a27cc

Browse files
committed
Update code samples
1 parent e701bc1 commit a0a27cc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,3 +773,29 @@ distinct_attribute_guide_filterable_1: |-
773773
client.index('products').updateFilterableAttributes(['product_id', 'sku', 'url'])
774774
distinct_attribute_guide_distinct_parameter_1: |-
775775
client.index('products').search('white shirt', { distinct: 'sku' })
776+
multi_search_federated_1: |-
777+
client.multiSearch({
778+
federation: {},
779+
queries: [
780+
{
781+
indexUid: 'movies',
782+
q: 'batman',
783+
limit: 5,
784+
},
785+
{
786+
indexUid: 'comics',
787+
q: 'batman',
788+
limit: 5,
789+
},
790+
]
791+
})
792+
search_parameter_reference_locales_1: |-
793+
client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] })
794+
get_localized_attribute_settings_1: |-
795+
client.index('INDEX_NAME').getLocalizedAttributes()
796+
update_localized_attribute_settings_1: |-
797+
client.index('INDEX_NAME').updateLocalizedAttributes([
798+
{ attributePatterns: ['jpn'], locales: ['*_ja'] },
799+
];)
800+
reset_localized_attribute_settings_1: |-
801+
client.index('INDEX_NAME').resetLocalizedAttributes()

0 commit comments

Comments
 (0)