Skip to content

Commit 6818620

Browse files
committed
skip unsuported addscores
1 parent ce09492 commit 6818620

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

search_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
667667
})
668668

669669
It("should FTAggregate with scorer and addscores", Label("search", "ftaggregate", "NonRedisEnterprise"), func() {
670+
SkipBeforeRedisVersion(7.4, "no addscores support")
670671
title := &redis.FieldSchema{FieldName: "title", FieldType: redis.SearchFieldTypeText, Sortable: false}
671672
description := &redis.FieldSchema{FieldName: "description", FieldType: redis.SearchFieldTypeText, Sortable: false}
672673
val, err := client.FTCreate(ctx, "idx1", &redis.FTCreateOptions{OnHash: true, Prefix: []interface{}{"product:"}}, title, description).Result()
@@ -1417,6 +1418,7 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
14171418
})
14181419

14191420
It("should test geoshapes query intersects and disjoint", Label("NonRedisEnterprise"), func() {
1421+
SkipBeforeRedisVersion(7.4, "doesn't work with older redis stack images")
14201422
_, err := client.FTCreate(ctx, "idx1", &redis.FTCreateOptions{}, &redis.FieldSchema{
14211423
FieldName: "g",
14221424
FieldType: redis.SearchFieldTypeGeoShape,

0 commit comments

Comments
 (0)