Add FT.ALIASLIST search command support#518
Open
uglide wants to merge 2 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+)
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; requires Redis 8.10+ for the new command at runtime.
Overview
Adds client support for FT.ALIASLIST (Query Engine 8.10+), which returns all alias names bound to a given index name.
AliasList/AliasListAsyncare wired through the same stack as other list-style search commands (_List,TagVals):FT.ALIASLISTliteral,SearchCommandBuilder.AliasList(index), sync/async execution returningRedisResult[], plus entries in PublicAPI.Unshipped.txt.Integration tests cover empty results, add/list/delete flows, and server errors for missing indexes, gated to Redis ≥ 8.10.0. Existing alias tests reuse new
AliasAddOrSkipOnCrossSlothelpers so legacy cluster CROSSSLOT failures skip instead of duplicating try/catch blocks.Reviewed by Cursor Bugbot for commit 9ac3f81. Bugbot is set up for automated code reviews on this repo. Configure here.