mirror of
https://github.com/redis/go-redis.git
synced 2025-04-16 09:23:06 +03:00
Undo changes in ft.search limit
This commit is contained in:
parent
a92f05aedd
commit
ec1b3201a2
@ -1954,7 +1954,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
|
||||
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)
|
||||
}
|
||||
if options.Params != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user