Skip to content

Commit b976e28

Browse files
authored
Merge branch 'master' into redis#3139-add-encoding-BinaryUnmarshaler-scan
2 parents 7fcc39c + caa2592 commit b976e28

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: make test
4040

4141
- name: Upload to Codecov
42-
uses: codecov/codecov-action@v4
42+
uses: codecov/codecov-action@v5
4343
with:
4444
files: coverage.txt
4545
token: ${{ secrets.CODECOV_TOKEN }}

search_commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ func FTSearchQuery(query string, options *FTSearchOptions) SearchQuery {
17751775
}
17761776
}
17771777
if options.SortByWithCount {
1778-
queryArgs = append(queryArgs, "WITHCOUT")
1778+
queryArgs = append(queryArgs, "WITHCOUNT")
17791779
}
17801780
}
17811781
if options.LimitOffset >= 0 && options.Limit > 0 {

search_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
125125
Expect(res2.Docs[1].ID).To(BeEquivalentTo("doc2"))
126126
Expect(res2.Docs[0].ID).To(BeEquivalentTo("doc3"))
127127

128+
res3, err := client.FTSearchWithArgs(ctx, "num", "foo", &redis.FTSearchOptions{NoContent: true, SortBy: []redis.FTSearchSortBy{sortBy2}, SortByWithCount: true}).Result()
129+
Expect(err).NotTo(HaveOccurred())
130+
Expect(res3.Total).To(BeEquivalentTo(int64(0)))
131+
128132
})
129133

130134
It("should FTCreate and FTSearch example", Label("search", "ftcreate", "ftsearch"), func() {

0 commit comments

Comments
 (0)