Skip to content

Commit a240c7f

Browse files
skips TextQuery text weight if redis version is too low
1 parent b8262b3 commit a240c7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/test_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,8 @@ def test_text_query_with_text_filter(index):
890890

891891
@pytest.mark.parametrize("scorer", ["BM25", "BM25STD", "TFIDF", "TFIDF.DOCNORM"])
892892
def test_text_query_word_weights(index, scorer):
893+
skip_if_redis_version_below(index.client, "7.2.0")
894+
893895
text = "a medical professional with expertise in lung cancers"
894896
text_field = "description"
895897
return_fields = ["description"]

0 commit comments

Comments
 (0)