1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

Undo changes in ft.search limit

This commit is contained in:
ofekshenawa 2025-04-07 17:14:04 +03:00
parent a92f05aedd
commit ec1b3201a2

View File

@ -1954,7 +1954,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
args = append(args, "WITHCOUNT") args = append(args, "WITHCOUNT")
} }
} }
if options.LimitOffset >= 0 && options.Limit >= 0 { if options.LimitOffset >= 0 && options.Limit > 0 {
args = append(args, "LIMIT", options.LimitOffset, options.Limit) args = append(args, "LIMIT", options.LimitOffset, options.Limit)
} }
if options.Params != nil { if options.Params != nil {