From ec1b3201a284292b6ed0ef96d3c06c8c7531115b Mon Sep 17 00:00:00 2001 From: ofekshenawa Date: Mon, 7 Apr 2025 17:14:04 +0300 Subject: [PATCH] Undo changes in ft.search limit --- search_commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search_commands.go b/search_commands.go index 6817af84..85e12561 100644 --- a/search_commands.go +++ b/search_commands.go @@ -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 {