Skip to content

Commit 6988cc9

Browse files
authored
Merge pull request #598 from meilisearch/bump-meilisearch-v1.13
Changes related to the next Meilisearch release (v1.13)
2 parents 679a4a1 + 221a156 commit 6988cc9

6 files changed

+9
-19
lines changed

.code-samples.meilisearch.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ search_parameter_guide_hitsperpage_1: |-
6767
search_parameter_guide_page_1: |-
6868
client.index('movies').search('', page: 2)
6969
getting_started_typo_tolerance: |-
70-
client.index('movies').update_typo_tolerance({ min_word_size_for_typos: { one_typo: 4 } })
70+
client.index('movies').update_typo_tolerance({ min_word_size_for_typos: { one_typo: 4 } })
7171
get_all_tasks_paginating_1: |-
7272
client.tasks(limit: 2, from: 10)
7373
get_all_tasks_paginating_2: |-
@@ -672,15 +672,15 @@ search_parameter_reference_ranking_score_threshold_1: |-
672672
rankingScoreThreshold: 0.2
673673
})
674674
search_parameter_reference_locales_1: |-
675-
client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] })
675+
client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] })
676676
get_localized_attribute_settings_1: |-
677-
client.index('INDEX_NAME').localized_attributes
677+
client.index('INDEX_NAME').localized_attributes
678678
update_localized_attribute_settings_1: |-
679-
client.index('INDEX_NAME').update_localized_attributes([
680-
{ attribute_patterns: ['*_ja'], locales: ['jpn'] },
681-
])
679+
client.index('INDEX_NAME').update_localized_attributes([
680+
{ attribute_patterns: ['*_ja'], locales: ['jpn'] },
681+
])
682682
reset_localized_attribute_settings_1: |-
683-
client.index('INDEX_NAME').reset_localized_attributes
683+
client.index('INDEX_NAME').reset_localized_attributes
684684
search_parameter_reference_distinct_1: |-
685685
client.index('INDEX_NAME').search('QUERY TERMS', {
686686
distinct: 'ATTRIBUTE_A'
@@ -695,7 +695,7 @@ update_embedders_1: |-
695695
client.index('INDEX_NAME').update_embedders(
696696
default: {
697697
source: 'openAi',
698-
api_key: 'anOpenAiApiKey',
698+
api_key: 'OPEN_AI_API_KEY',
699699
model: 'text-embedding-3-small',
700700
document_template: "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
701701
}

spec/meilisearch/index/documents_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
end
9696

9797
it 'allows the user to store vectors' do
98-
enable_vector_store(true)
9998
new_doc = { objectId: 123, _vectors: { default: [0.1, 0.2, 0.3] } }
10099
client.create_index('vector_test').await
101100
new_index = client.index('vector_test')

spec/meilisearch/index/search/similar_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
end
1313

1414
it 'does a search for similar documents' do
15-
enable_vector_store(true)
16-
1715
documents = [
1816
{
1917
title: 'Shazam!',

spec/meilisearch/index/search/vector_search_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
RSpec.describe 'Meilisearch::Index - Vector search' do
44
it 'does a basic search' do
5-
enable_vector_store(true)
6-
75
documents = [
86
{ objectId: 0, _vectors: { custom: [0, 0.8, -0.2] }, title: 'Across The Universe' },
97
{ objectId: 1, _vectors: { custom: [1, -0.2, 0] }, title: 'All Things Must Pass' },

spec/meilisearch/index/settings_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -850,10 +850,9 @@
850850

851851
context 'on embedders' do
852852
let(:index) { client.index(uid) }
853-
let(:default_embedders) { nil }
853+
let(:default_embedders) { {} }
854854

855855
before { client.create_index(uid).await }
856-
before { enable_vector_store(true) }
857856

858857
it '#embedders gets default value' do
859858
expect(index.embedders).to eq(default_embedders)

spec/support/experimental_feature_helpers.rb

-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
require 'json'
55

66
module ExperimentalFeatureHelpers
7-
def enable_vector_store(toggle)
8-
configure_feature('vectorStore', toggle)
9-
end
10-
117
def enable_edit_documents_by_function(toggle)
128
configure_feature('editDocumentsByFunction', toggle)
139
end

0 commit comments

Comments
 (0)