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 0b89ce9 commit 707e6e9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -718,3 +718,29 @@ negative_search_1: |-
$client->index('movies')->search('-escape');
negative_search_2: |-
$client->index('movies')->search('-"escape"');
search_parameter_reference_retrieve_vectors_1: |-
$client->index('INDEX_NAME')->search('kitchen utensils', [
'retrieveVectors' => true,
'hybrid' => [
'embedder': 'default'
]
]);
search_parameter_reference_ranking_score_threshold_1: |-
$client->index('INDEX_NAME')->search('badman', [
'rankingScoreThreshold' => 0.2
]);
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'
]);
search_parameter_guide_matching_strategy_3: |-
$client->index('movies')->search('white shirt', ['matchingStrategy' => 'frequency']);
get_similar_post_1: |-
$similarQuery = new SimilarDocumentsQuery('TARGET_DOCUMENT_ID');
$client->index('INDEX_NAME')->getSimilar($similarQuery);

0 comments on commit 707e6e9

Please sign in to comment.