Skip to content

Commit 74b5165

Browse files
meili-bors[bot]meili-botcurquiza
authored
Merge #542
542: Changes related to the next Meilisearch release (v1.9.0) r=curquiza a=meili-bot Related to this issue: meilisearch/integration-guides#301 This PR: - gathers the changes related to the next Meilisearch release (v1.9.0) so that this package is ready when the official release is out. - should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases). - might eventually contain test failures until the Meilisearch v1.9.0 is out. ⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.9.0) is out. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/main/resources/pre-release-week.md) purpose._ Co-authored-by: meili-bot <[email protected]> Co-authored-by: curquiza <[email protected]>
2 parents c63b809 + ce940ab commit 74b5165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/meilisearch/index/documents_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@
153153

154154
it 'allows the user to store vectors' do
155155
enable_vector_store(true)
156-
new_doc = { objectId: 123, _vectors: [0.1, 0.2, 0.3] }
156+
new_doc = { objectId: 123, _vectors: { default: [0.1, 0.2, 0.3] } }
157157
client.create_index('vector_test').await
158158
new_index = client.index('vector_test')
159159
new_index.add_documents(new_doc).await
160-
expect(new_index.document(123)['_vectors']).to include(0.1)
160+
expect(new_index.search('123', retrieveVectors: true)['hits'][0]['_vectors']).to include('default')
161161
end
162162
end
163163
end

0 commit comments

Comments
 (0)