Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat rueidiscompat redisearch #676

Merged
merged 49 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a790394
feat: wip: implement SearchCmdable
unknowntpo Oct 25, 2024
06ad288
feat(RediSearch): wip
unknowntpo Oct 28, 2024
d117723
feat(RediSearch): wip: fixme: why not impl FTAggregate
unknowntpo Oct 29, 2024
23456bb
feat(RediSearch): wip: FTSpellCheckCmd
unknowntpo Oct 30, 2024
8ad4582
feat(RediSearch): wip: FTAggregate
unknowntpo Oct 31, 2024
a9a41ce
feat: wip: implement SearchCmdable: FTAggregateWithArgs
unknowntpo Nov 2, 2024
af0877f
wip: ft aggregate: reduce
unknowntpo Nov 8, 2024
968c423
wip: ft aggregate: params
unknowntpo Nov 9, 2024
b09c97f
feat: add ADDSCORES option to FT_AGGREGATE command
unknowntpo Nov 9, 2024
1013f1c
feat: FT_CREATE: add GEOSHAPE fieldType
unknowntpo Nov 9, 2024
8f56851
wip: FT_EXPLAIN
unknowntpo Nov 10, 2024
f152187
wip: FT_SEARCH: filter
unknowntpo Nov 10, 2024
3dd39d7
feat: FT_SEARCH: add WITHCOUNT option
unknowntpo Nov 10, 2024
fb2a44a
feat: FT_SEARCH
unknowntpo Nov 10, 2024
8696ed1
feat(rueidiscompat/SearchCmdable): done
unknowntpo Nov 13, 2024
d9b842d
feat(rueidiscompat/SearchCmdable): wip: fix teste
unknowntpo Nov 16, 2024
9bdbdc1
fix(FTSearchCmd): impl FTSearchCmd.from
unknowntpo Nov 18, 2024
9726d8b
fix(FTSearchCmd): fix FTSearchWithArgs: geofilter
unknowntpo Nov 18, 2024
e022872
feat(hack/cmds/commands_search.json): FT.CREATE: add WITHSUFFIXTRIE, …
unknowntpo Nov 18, 2024
f29e8ef
fix(FTCreateCmd): fix failed tests
unknowntpo Nov 18, 2024
c69f492
feat(hack/cmds/commands_search.json): FT.AGGREGATE: add missing WITHC…
unknowntpo Nov 19, 2024
45da2f1
fix(FTAggregate): fix sortby limit test case
unknowntpo Nov 19, 2024
ae41893
fix(FT.SEARCH): fix tests
unknowntpo Nov 20, 2024
de6fdcb
refactor(adapter_test.go): add testAdapterSearchRESP2, testAdapterSea…
unknowntpo Nov 20, 2024
4eeaff7
fix(FT.SEARCH): add correct impl (array reply)
unknowntpo Nov 20, 2024
20dc2ba
minor tweaks
unknowntpo Nov 20, 2024
2a95d29
fix: FT.INFO, FT.SPELLCHECK
unknowntpo Nov 21, 2024
76bb0d9
doc(util.go): add liscence
unknowntpo Nov 21, 2024
8cbc291
feat(FT.CONFIG_GET): impl
unknowntpo Nov 21, 2024
fa13b50
feat(FT.SYNDUMP, FTSYNUPDATE): impl
unknowntpo Nov 22, 2024
6b50b1a
feat(FT.SEARCH): fix params
unknowntpo Nov 22, 2024
74846aa
fix(FT.SEARCH): fix test: should FTCreate GeoShape
unknowntpo Nov 22, 2024
8400a8f
fix(FT.SEARCH): fix test: should search missing fields
unknowntpo Nov 22, 2024
1056609
fix(testAdapterSearchRESP2): make tests PASS
unknowntpo Nov 22, 2024
d3ecd09
wip: RESP3
unknowntpo Nov 23, 2024
a4a1a3b
refactor(pipeline.go): remove unused var
unknowntpo Nov 23, 2024
7334598
feat(message.go): add IsMap, IsArray helper
unknowntpo Nov 23, 2024
91b4248
feat(FT.SEARCH): fix resp3 tests
unknowntpo Nov 23, 2024
8ade9d7
fix tests
unknowntpo Nov 23, 2024
d9a8d6e
fix tests
unknowntpo Nov 24, 2024
f4a53c7
refactor: add docs
unknowntpo Nov 24, 2024
5fb4efb
refactor: remove unused comment
unknowntpo Nov 24, 2024
b302843
refactor: remove unused debug log
unknowntpo Nov 24, 2024
4ab2a21
refactor: remove ginkgo focus
unknowntpo Nov 24, 2024
9320786
refactor(search_command.json): revert unrelated change
unknowntpo Nov 24, 2024
766159e
minor tweaks
unknowntpo Nov 24, 2024
ea70f3b
fix: revert accidentally committed code in RedisResult.ToMap
unknowntpo Nov 25, 2024
a8eb47c
refactor(util.go): remove unused function
unknowntpo Nov 25, 2024
ec1b389
refactor(message.go): remove RedisResult.IsMap, RedisResult.IsArray
unknowntpo Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ services:
image: redis:5-alpine
ports:
- "6356:6379"
compat-redisearch:
image: redis/redis-stack:7.4.0-v0
ports:
- "6381:6379"
sentinel:
image: redis:7.4-alpine
entrypoint:
Expand Down
59 changes: 50 additions & 9 deletions hack/cmds/commands_search.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@
"TAG",
"NUMERIC",
"GEO",
"VECTOR"
"VECTOR",
"GEOSHAPE"
]
},
{
Expand All @@ -182,14 +183,6 @@
"optional": true,
"multiple": true,
"block": [
{
"name": "withsuffixtrie",
"type": "enum",
"enum": [
"WITHSUFFIXTRIE"
],
"optional": true
},
{
"name": "sortable",
"type": "block",
Expand Down Expand Up @@ -253,6 +246,30 @@
"enum": [
"CASESENSITIVE"
]
},
{
"name": "WITHSUFFIXTRIE",
"type": "enum",
"optional": true,
"enum": [
"WITHSUFFIXTRIE"
]
},
{
"name": "INDEXEMPTY",
"type": "enum",
"optional": true,
"enum": [
"INDEXEMPTY"
]
},
{
"name": "INDEXMISSING",
"type": "enum",
"optional": true,
"enum": [
"INDEXMISSING"
]
}
]
}
Expand Down Expand Up @@ -1091,6 +1108,14 @@
"ASC",
"DESC"
]
},
{
"name": "withcount",
"type": "enum",
"optional": true,
"enum": [
"WITHCOUNT"
]
}
]
},
Expand Down Expand Up @@ -1314,6 +1339,14 @@
"type": "integer",
"command": "MAX",
"optional": true
},
{
"name": "withcount",
"type": "enum",
"enum": [
"WITHCOUNT"
],
"optional": true
}
]
},
Expand Down Expand Up @@ -1421,6 +1454,14 @@
}
]
},
{
"name": "addscores",
"type": "enum",
"enum": [
"ADDSCORES"
],
"optional": true
},
{
"name": "dialect",
"type": "integer",
Expand Down
Loading