Skip to content

Commit

Permalink
Update code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
curquiza committed Jun 26, 2024
1 parent 8e56525 commit 7edd89c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -754,3 +754,22 @@ negative_search_1: |-
client.index('movies').search('-escape')
negative_search_2: |-
client.index('movies').search('-"escape"')
search_parameter_reference_ranking_score_threshold_1: |-
client.index('INDEX_NAME').search('badman', { rankingScoreThreshold: 0.2 })
search_parameter_reference_retrieve_vectors_1: |-
client.index('INDEX_NAME').search('kitchen utensils', {
retrieveVectors: true,
hybrid: { embedder: 'default'}
})
get_similar_post_1: |-
client.index('INDEX_NAME').searchSimilarDocuments({ id: 'TARGET_DOCUMENT_ID'})
search_parameter_guide_matching_strategy_3: |-
client.index('movies').search('white shirt', {
matchingStrategy: 'frequency'
})
search_parameter_reference_distinct_1: |-
client.index('INDEX_NAME').search('QUERY TERMS', { distinct: 'ATTRIBUTE_A' })
distinct_attribute_guide_filterable_1: |-
client.index('products').updateFilterableAttributes(['product_id', 'sku', 'url'])
distinct_attribute_guide_distinct_parameter_1: |-
client.index('products').search('white shirt', { distinct: 'sku' })

0 comments on commit 7edd89c

Please sign in to comment.