@@ -371,10 +371,11 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
371371		Expect (names ).To (ContainElement ("John" ))
372372	})
373373
374- 	// in redis 8, the default scorer is changed BM25 
374+ 	// up until redis 8 the default scorer was TFIDF, in redis 8 it is BM25 
375+ 	// this test expect redis major version >= 8 
375376	It ("should FTSearch WithScores" , Label ("search" , "ftsearch" ), func () {
376377		if  REDIS_MAJOR_VERSION  <  8  {
377- 			Skip ("default scorer is not BM25" )
378+ 			Skip ("(redis major version < 8)  default scorer is not BM25" )
378379		}
379380		text1  :=  & redis.FieldSchema {FieldName : "description" , FieldType : redis .SearchFieldTypeText }
380381		val , err  :=  client .FTCreate (ctx , "idx1" , & redis.FTCreateOptions {}, text1 ).Result ()
@@ -414,9 +415,11 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
414415		Expect (* res .Docs [0 ].Score ).To (BeEquivalentTo (float64 (0 )))
415416	})
416417
418+ 	// up until redis 8 the default scorer was TFIDF, in redis 8 it is BM25 
419+ 	// this test expect redis major version <=7 
417420	It ("should FTSearch WithScores" , Label ("search" , "ftsearch" ), func () {
418- 		if  REDIS_MAJOR_VERSION  >=    8  {
419- 			Skip ("default scorer is not TFIDF" )
421+ 		if  REDIS_MAJOR_VERSION  >   7  {
422+ 			Skip ("(redis major version > 7)  default scorer is not TFIDF" )
420423		}
421424		text1  :=  & redis.FieldSchema {FieldName : "description" , FieldType : redis .SearchFieldTypeText }
422425		val , err  :=  client .FTCreate (ctx , "idx1" , & redis.FTCreateOptions {}, text1 ).Result ()
0 commit comments