Skip to content

Commit 7047616

Browse files
committed
remove redis 8 comments
1 parent 4d09be3 commit 7047616

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

search_commands.go

+7-16
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,13 @@ type FTAggregateWithCursor struct {
240240
}
241241

242242
type FTAggregateOptions struct {
243-
Verbatim bool
244-
LoadAll bool
245-
Load []FTAggregateLoad
246-
Timeout int
247-
GroupBy []FTAggregateGroupBy
248-
SortBy []FTAggregateSortBy
249-
SortByMax int
250-
// Scorer is used to set scoring function, if not set passed, a default will be used.
251-
// The default scorer depends on the Redis version:
252-
// - `BM25` for Redis >= 8
253-
// - `TFIDF` for Redis < 8
254-
Scorer string
255-
// AddScores is available in Redis CE 8
256-
AddScores bool
257-
Apply []FTAggregateApply
258-
LimitOffset int
243+
Verbatim bool
244+
LoadAll bool
245+
Load []FTAggregateLoad
246+
Timeout int
247+
GroupBy []FTAggregateGroupBy
248+
SortBy []FTAggregateSortBy
249+
SortByMax int
259250
Limit int
260251
Filter string
261252
WithCursor bool

search_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
605605
})
606606

607607
It("should FTAggregate with scorer and addscores", Label("search", "ftaggregate", "NonRedisEnterprise"), func() {
608-
SkipBeforeRedisMajor(8, "ADDSCORES is available in Redis CE 8")
609608
title := &redis.FieldSchema{FieldName: "title", FieldType: redis.SearchFieldTypeText, Sortable: false}
610609
description := &redis.FieldSchema{FieldName: "description", FieldType: redis.SearchFieldTypeText, Sortable: false}
611610
val, err := client.FTCreate(ctx, "idx1", &redis.FTCreateOptions{OnHash: true, Prefix: []interface{}{"product:"}}, title, description).Result()

0 commit comments

Comments
 (0)