meilisearch / meilisearch-python

Python wrapper for the Meilisearch API
https://meilisearch.com
MIT License
459 stars 85 forks source link

Fix document and vector fixture #963

Closed sanders41 closed 5 months ago

sanders41 commented 5 months ago

Pull Request

In looking at #962 I noticed that the index_with_documents_and_vectors fixture was not working as expected and therefore the test_vector_search test was not testing what was expected. Because only one document had vectors the document addition task was failing and no documents were added to the index. So test_vector_search was returning no hits because there were no documents in the index. This updates the fixutre to add vectors to all documents, and updates the test to pass with the new results.

Related issue

Fixes #

What does this PR do?

PR checklist

Please check if your PR fulfills the following requirements:

Thank you so much for contributing to Meilisearch!

meili-bors[bot] commented 5 months ago

Build succeeded: