From 845f005235772363bf450a76e9bc84ae293dd3cf Mon Sep 17 00:00:00 2001 From: meili-bot <74670311+meili-bot@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:37:26 +0200 Subject: [PATCH 1/2] Update README.md From 93271b8580643accc2c68c54ff43321998117cdd Mon Sep 17 00:00:00 2001 From: curquiza Date: Wed, 19 Jun 2024 14:07:09 +0200 Subject: [PATCH 2/2] Fix test --- spec/meilisearch/index/documents_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/meilisearch/index/documents_spec.rb b/spec/meilisearch/index/documents_spec.rb index 177af894..3b23c0c5 100644 --- a/spec/meilisearch/index/documents_spec.rb +++ b/spec/meilisearch/index/documents_spec.rb @@ -153,11 +153,11 @@ it 'allows the user to store vectors' do enable_vector_store(true) - new_doc = { objectId: 123, _vectors: [0.1, 0.2, 0.3] } + new_doc = { objectId: 123, _vectors: { default: [0.1, 0.2, 0.3] } } client.create_index('vector_test').await new_index = client.index('vector_test') new_index.add_documents(new_doc).await - expect(new_index.document(123)['_vectors']).to include(0.1) + expect(new_index.search("123", retrieveVectors: true)['hits'][0]['_vectors']).to include('default') end end end