Skip to content

Commit a13abe2

Browse files
authored
Fix similar docs code sample
1 parent 110be45 commit a13abe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ search_parameter_guide_matching_strategy_3: |-
743743
$client->index('movies')->search('white shirt', ['matchingStrategy' => 'frequency']);
744744
get_similar_post_1: |-
745745
$similarQuery = new SimilarDocumentsQuery('TARGET_DOCUMENT_ID');
746-
$client->index('INDEX_NAME')->getSimilar($similarQuery);
746+
$client->index('INDEX_NAME')->searchSimilarDocuments($similarQuery);
747747
multi_search_federated_1: |-
748748
$client->multiSearch([
749749
(new SearchQuery())

0 commit comments

Comments
 (0)