Skip to content

Commit b555bc1

Browse files
Merge #1007
1007: Adds documentation for search parameter reference distinct r=sanders41 a=aweidner # Pull Request ## Related issue Fixes #989 ## What does this PR do? - Adds search_parameter_reference_distinct_1 key and “translates” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/04f26a35771305378ed0a506f4d60ef06d07bd7e/.code-samples.meilisearch.yaml#L1308 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Adam Weidner <[email protected]>
2 parents 3f7b276 + 9800c04 commit b555bc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ search_parameter_guide_attributes_to_search_on_1: |-
372372
client.index('movies').search('adventure', {
373373
'attributesToSearchOn': ['overview']
374374
})
375+
search_parameter_reference_distinct_1: |-
376+
client.index('INDEX_NAME').search('QUERY_TERMS', { distinct: 'ATTRIBUTE_A' })
375377
distinct_attribute_guide_filterable_1: |-
376378
client.index('products').update_filterable_attributes(['product_id', 'sku', 'url'])
377379
distinct_attribute_guide_distinct_parameter_1: |-

0 commit comments

Comments
 (0)