1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-08 19:52:07 +03:00
Commit Graph

19 Commits

Author SHA1 Message Date
ofekshenawa
b6b2d7edbe Enable dialect 2 on default (#3213)
* Enable dialect 2 on deafult

* add vector test for default dialect

* Add dialect 1 test

* Add dialect 1 test & fix ft.search

* Add default dialect to Readme
2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
4451928608 feat: Enable CI for Redis CE 8.0 (#3274)
* chore: extract benchmark tests

* wip

* enable pubsub tests

* enable ring tests

* stop tests with build redis from source

* start all tests

* mix of makefile and action

* add sentinel configs

* fix example test

* stop debug on re

* wip

* enable gears for redis 7.2

* wip

* enable sentinel, they are expected to fail

* fix: linter configuration

* chore: update re versions

* return older redis enterprise version

* add basic codeql

* wip: increase timeout, focus only sentinel tests

* sentinels with docker network host

* enable all tests

* fix flanky test

* enable example tests

* tidy docker compose

* add debug output

* stop shutingdown masters

* don't test sentinel for re

* skip unsuported addscores

* Update README

bump go version in CI

* Update README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update CONTRIBUTING.md

add information about new test setup

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-11 01:42:45 +03:00
Tom Bayes
0a76a3570b Add test codes for search_commands.go (#3285)
* feat: add test codes for search_commands.go

* feat: move ftaggregate tests to search_test.go

* Update search_test.go

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>

* feat: remove reflect from test

* Update search_test.go

fix type in Sprintf

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
0bd9d4a8ee V9.7.1 -> master (#3287) 2025-08-11 01:42:45 +03:00
herodot
1814bae1fd fix(search&aggregate):fix error overwrite and typo #3220 (#3224)
* fix (#3220)

* LOAD has NO AS param(https://redis.io/docs/latest/commands/ft.aggregate/)

* fix typo: WITHCOUT -> WITHCOUNT

* fix (#3220):

    * Compatible with known RediSearch issue in test

* fix (#3220)

    * fixed the calculation bug of the count of load params

* test should not include special condition

* return errors when they occur

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
7b400169e3 use limit when limitoffset is zero (#3275) 2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
7816fdda4b fix(aggregate, search): ft.aggregate bugfixes (#3263)
* fix: rearange args for ft.aggregate

apply should be before any groupby or sortby

* improve test

* wip: add scorer and addscores

* enable all tests

* fix ftsearch with count test

* make linter happy

* Addscores is available in later redisearch releases.

For safety state it is available in redis ce 8

* load an apply seem to break scorer and addscores
2025-08-11 01:42:45 +03:00
ZhuHaiCheng
b83216f26a chore: fix some comments (#3226)
Signed-off-by: zhuhaicity <zhuhai@52it.net>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
c0235ccb9d feat(tests): validate that ConfigSet and ConfigGet work with Modules (#3258)
* Add tests for unified config in Redis 8

* WIP: fix reading FT.CONFIG with RESP3

* add more tests

* use search-timeout

* move deprecated warnings on the bottom
2025-08-11 01:42:45 +03:00
Nedyalko Dyakov
cab668d936 fix(tests): enable testing with Redis CE 8.0-M4 in CI (#3247)
* introduce github workflow for ci similar to the one in redis-py

use prerelease for 8.0-M4

* Enable osscluster tests in CI

* Add redis major version env

Enable filtering test per redis major version
Fix test for FT.SEARCH WITHSCORE, the default scorer
has changed.

fix Makefile syntax

remove filter from github action

fix makefile

use the container name in Makefile

* remove 1.20 from doctests

* self review, cleanup, add comments

* add comments, reorder prints, add default value for REDIS_MAJOR_VERSION
2025-08-11 01:42:45 +03:00
Cgol9
cfbb6f5a03 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>
2025-08-11 01:42:45 +03:00
andy-stark-redis
d592eedde6 Fix field name spellings (#3132)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2025-08-11 01:42:44 +03:00
ofekshenawa
c8e4a1eebf Fix Flaky Test: should handle FTAggregate with Unstable RESP3 Search Module and without stability (#3135) 2025-08-11 01:39:46 +03:00
ofekshenawa
83e7f56349 Support Resp 3 Redis Search Unstable Mode (#3098)
* Updated module version that points to retracted package version (#3074)

* Updated module version that points to retracted package version

* Updated testing image to latest

* support raw parsing for problematic Redis Search types

* Add UnstableResp3SearchModule to client options

* Add tests for Resp3 Search unstable mode

* Add tests for Resp3 Search unstable mode

* Add readme note

* Add words to spellcheck

* Add UnstableResp3SearchModule check to assertStableCommand

* Fix assertStableCommand logic

* remove go.mod changes

* Check panic occur on tests

* rename method

* update errors

* Rename flag to UnstableResp3

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: vladvildanov <divinez122@outlook.com>
2025-08-11 01:39:46 +03:00
ofekshenawa
d5d21398f6 Add tests case with FLOAT16 and BFLOAT16 vectors (#3054)
* Add tests case with FLOAT16 and BFLOAT16 vectors

* Remove from enterprise
2025-08-11 01:39:46 +03:00
ofekshenawa
bc524fe034 Test RediSearch dialect 4 (#3052)
* Test dialect 4

* Add support for num and email

* remove tests from RE
2025-08-11 01:39:46 +03:00
ofekshenawa
be3e4f0117 Add tests for search GEO (#3051)
* Add tests for search GEO

* Remove from enterprise
2025-08-11 01:39:46 +03:00
ofekshenawa
8408e97cd8 Support RediSearch empty values (#3053)
* Support RediSearch empty values

* Remove from enterprise
2025-08-11 01:39:45 +03:00
ofekshenawa
31068bbf2b RediSearch Support (#2801)
* Add RediSearch Support

* searach

* Add RediSearch commands and tests

* Adding more tests and fixing commands

* Remove unnecessary additions

* fixing tests

* fixing tests

* fixing tests

* fixing FTConfig dialect test

* fix commects

* make enum for field types

* Support resp 2

* fix golang ci

* fix ftinfo

---------

Co-authored-by: Chayim <chayim@users.noreply.github.com>
2025-08-11 01:39:45 +03:00