Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
curquiza committed Jun 19, 2024
1 parent 845f005 commit b05bc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/meilisearch/index/documents_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)['_vectors']).to include(:default)
end
end
end
Expand Down

0 comments on commit b05bc61

Please sign in to comment.