From b90cc52aecac8bf7e740b2caaa5e5243969eb156 Mon Sep 17 00:00:00 2001 From: curquiza Date: Thu, 10 Oct 2024 17:27:02 +0200 Subject: [PATCH] Add code samples --- .code-samples.meilisearch.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 93791c842..b6cfaf2b5 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -759,7 +759,16 @@ search_parameter_reference_ranking_score_threshold_1: |- search_parameter_reference_retrieve_vectors_1: |- client.index('INDEX_NAME').search('kitchen utensils', { retrieveVectors: true, - hybrid: { embedder: 'default'} + hybrid: { + embedder: 'EMBEDDER_NAME' + } + }) +search_parameter_guide_hybrid_1: |- + client.index('INDEX_NAME').search('kitchen utensils', { + hybrid: { + semanticRatio: 0.9, + embedder: 'EMBEDDER_NAME' + } }) get_similar_post_1: |- client.index('INDEX_NAME').searchSimilarDocuments({ id: 'TARGET_DOCUMENT_ID'}) @@ -788,7 +797,7 @@ multi_search_federated_1: |- ] }) search_parameter_reference_locales_1: |- - client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] }) + client.index('INDEX_NAME').search('QUERY TEXT IN JAPANESE', { locales: ['jpn'] }) get_localized_attribute_settings_1: |- client.index('INDEX_NAME').getLocalizedAttributes() update_localized_attribute_settings_1: |-