From 528a9af445d48b518612b6808ad72f4916c00f8f Mon Sep 17 00:00:00 2001 From: meili-bot <74670311+meili-bot@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:18:49 +0200 Subject: [PATCH 1/4] Update README.md From cce995a0b6c4b655ff7e44c3b98abe180411e50d Mon Sep 17 00:00:00 2001 From: curquiza Date: Wed, 23 Oct 2024 21:32:48 +0200 Subject: [PATCH 2/4] Fix test --- spec/meilisearch/index/search/similar_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/meilisearch/index/search/similar_spec.rb b/spec/meilisearch/index/search/similar_spec.rb index 99df22c8..9ba1c4e5 100644 --- a/spec/meilisearch/index/search/similar_spec.rb +++ b/spec/meilisearch/index/search/similar_spec.rb @@ -46,7 +46,7 @@ new_index.add_documents(documents).await - response = new_index.search_similar_documents('287947') + response = new_index.search_similar_documents('287947', embedders: 'manual') expect(response['hits']).not_to be_empty expect(response['estimatedTotalHits']).not_to be_nil From acd5b649c1b43d181ab535472a159936bbfe7566 Mon Sep 17 00:00:00 2001 From: curquiza Date: Wed, 23 Oct 2024 21:34:21 +0200 Subject: [PATCH 3/4] Fix test --- spec/meilisearch/index/search/similar_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/meilisearch/index/search/similar_spec.rb b/spec/meilisearch/index/search/similar_spec.rb index 9ba1c4e5..9f9e0805 100644 --- a/spec/meilisearch/index/search/similar_spec.rb +++ b/spec/meilisearch/index/search/similar_spec.rb @@ -46,7 +46,7 @@ new_index.add_documents(documents).await - response = new_index.search_similar_documents('287947', embedders: 'manual') + response = new_index.search_similar_documents('287947', embedder: 'manual') expect(response['hits']).not_to be_empty expect(response['estimatedTotalHits']).not_to be_nil From 409502d74535fa88b2ab6a2288284dd95fd93d7d Mon Sep 17 00:00:00 2001 From: curquiza Date: Wed, 23 Oct 2024 21:35:58 +0200 Subject: [PATCH 4/4] Fix code samples --- .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 87438e7b..38b711ae 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -654,7 +654,7 @@ update_search_cutoff_1: |- reset_search_cutoff_1: |- client.index('movies').reset_search_cutoff_ms get_similar_post_1: |- - client.index('INDEX_NAME').search_similar_documents('TARGET_DOCUMENT_ID') + client.index('INDEX_NAME').search_similar_documents('TARGET_DOCUMENT_ID', embedder: 'default') search_parameter_reference_ranking_score_threshold_1: |- client.index('INDEX_NAME').search('badman', { rankingScoreThreshold: 0.2