Skip to content

Commit ec1b320

Browse files
committed
Undo changes in ft.search limit
1 parent a92f05a commit ec1b320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search_commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
19541954
args = append(args, "WITHCOUNT")
19551955
}
19561956
}
1957-
if options.LimitOffset >= 0 && options.Limit >= 0 {
1957+
if options.LimitOffset >= 0 && options.Limit > 0 {
19581958
args = append(args, "LIMIT", options.LimitOffset, options.Limit)
19591959
}
19601960
if options.Params != nil {

0 commit comments

Comments
 (0)