Skip to content

Commit a464d39

Browse files
meili-botcurquizasanders41
authored
Update tests related to the next Meilisearch release (v1.6.0) (#900)
* Update README.md * Update tests * Update README.md with compatibility information * Xfail test --------- Co-authored-by: curquiza <[email protected]> Co-authored-by: Paul Sanders <[email protected]>
1 parent dc342ca commit a464d39

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ index.search(
208208

209209
This package guarantees compatibility with [version v1.x of Meilisearch](https://github.com/meilisearch/meilisearch/releases/latest), but some features may not be present. Please check the [issues](https://github.com/meilisearch/meilisearch-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3Aenhancement) for more info.
210210

211+
⚠️ This package is not compatible with the [`vectoreStore` experimental feature](https://www.meilisearch.com/docs/learn/experimental/vector_search) of Meilisearch v1.6.0 and later. More information on this [issue](https://github.com/meilisearch/meilisearch-python/issues/901).
212+
211213
## 💡 Learn more
212214

213215
The following sections in our main documentation website may interest you:

tests/index/test_index_search_meilisearch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,13 @@ def test_attributes_to_search_on_search_no_match(index_with_documents):
459459
assert response["hits"] == []
460460

461461

462+
@pytest.mark.xfail(
463+
strict=True, reason="https://github.com/meilisearch/meilisearch-python/issues/901"
464+
)
462465
@pytest.mark.usefixtures("enable_vector_search")
463466
def test_vector_search(index_with_documents_and_vectors):
464467
response = index_with_documents_and_vectors().search(
465468
"How to Train Your Dragon", opt_params={"vector": [0.1, 0.2]}
466469
)
467-
468470
assert response["hits"][0]["id"] == "287947"
469471
assert response["vector"] == [0.1, 0.2]

0 commit comments

Comments
 (0)