Add FT.ALIASLIST search command support#518
Open
uglide wants to merge 5 commits into
Open
Conversation
Add support for the FT.ALIASLIST command (Query Engine 8.10), which lists all aliases associated with a given index. - Add ALIASLIST constant and SearchCommandBuilder.AliasList(index) - Expose AliasList / AliasListAsync on ISearchCommands and ISearchCommandsAsync (returning RedisResult[], matching _List/TagVals) - Register the new public API surface in PublicAPI.Unshipped.txt - Add sync and async integration tests (guarded to Redis 8.10+)
mgravell
approved these changes
Jul 15, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d536e0d. Configure here.
| string[] Aliases() => ft.AliasList(index).Select(a => a.ToString()).OrderBy(a => a).ToArray(); | ||
|
|
||
| // An existing index with no aliases returns an empty collection, not an error. | ||
| Assert.Empty(ft.AliasList(index)); |
There was a problem hiding this comment.
AliasList tests miss CROSSSLOT skip
Low Severity
TestAliasList and TestAliasListAsync call AliasList / AliasListAsync before any alias-command environment probe. On legacy cluster setups that respond with CROSSSLOT for alias-related FT commands, those calls fail the test instead of skipping like AliasAddOrSkipOnCrossSlot does for FT.ALIASADD.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit d536e0d. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add support for the FT.ALIASLIST command (Query Engine 8.10), which lists all aliases associated with a given index.
Note
Low Risk
Additive public API and thin command passthrough with no changes to auth or existing alias behavior; primary risk is callers on Redis versions before 8.10 where the command is unavailable.
Overview
Adds FT.ALIASLIST (Query Engine 8.10+) so callers can list all aliases bound to a RediSearch index name.
New
AliasList/AliasListAsyncAPIs on the search command interfaces and implementations returnRedisResult[], aligned with_ListandTagVals. Wiring includes theFT.ALIASLISTliteral,SearchCommandBuilder.AliasList, and entries inPublicAPI.Unshipped.txt.Integration tests cover empty results, add/remove alias flows, and server errors for missing indexes (Redis 8.10+). Existing alias tests reuse shared helpers that skip on legacy cluster
CROSSSLOTfailures fromFT.ALIASADD.Reviewed by Cursor Bugbot for commit ca9bdc5. Bugbot is set up for automated code reviews on this repo. Configure here.