mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
SortByWithCount FTSearchOptions fix (#3201)
* SortByWithCount FTSearchOptions fix * FTSearch test fix * Another FTSearch test fix * Another FTSearch test fix --------- Co-authored-by: Christopher Golling <Chris.Golling@aexp.com>
This commit is contained in:
@ -1775,7 +1775,7 @@ func FTSearchQuery(query string, options *FTSearchOptions) SearchQuery {
|
||||
}
|
||||
}
|
||||
if options.SortByWithCount {
|
||||
queryArgs = append(queryArgs, "WITHCOUT")
|
||||
queryArgs = append(queryArgs, "WITHCOUNT")
|
||||
}
|
||||
}
|
||||
if options.LimitOffset >= 0 && options.Limit > 0 {
|
||||
|
Reference in New Issue
Block a user