Skip to content

Commit 3bba555

Browse files
committed
translates distinct code samples
1 parent e91b8a1 commit 3bba555

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ search_parameter_guide_attributes_to_search_on_1: |-
372372
client.index('movies').search('adventure', {
373373
'attributesToSearchOn': ['overview']
374374
})
375+
distinct_attribute_guide_filterable_1: |-
376+
client.index('products').updateFilterableAttributes(['product_id', 'sku', 'url'])
377+
distinct_attribute_guide_distinct_parameter_1: |-
378+
client.index('products').search('white shirt', { distinct: 'sku' })
375379
add_movies_json_1: |-
376380
import json
377381

0 commit comments

Comments
 (0)