From a13abe271b82638429cb4fe55fb55ba30ebe91ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Nork=C5=ABnas?= Date: Mon, 2 Sep 2024 21:34:20 +0300 Subject: [PATCH] Fix similar docs code sample --- .code-samples.meilisearch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index f2bd092e..9e206dda 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -743,7 +743,7 @@ 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); + $client->index('INDEX_NAME')->searchSimilarDocuments($similarQuery); multi_search_federated_1: |- $client->multiSearch([ (new SearchQuery())