FT.ALIASLIST
列出搜索索引的别名。
语法
FT.ALIASLIST index
引入版本:8.10.0
复杂度摘要:O(N)
列出给定 index 的所有别名。
必需参数
index
是要为其列出别名的索引的名称。
示例
Add an alias to an index
为索引添加别名。
> FT.ALIASADD alias idx:bicycle
OK
列出 idx:bicycle 的别名
> FT.ALIASLIST idx:bicycle
1) "alias"
Redis Software 与 Redis Cloud 兼容性
| Redis 软件 |
Redis软件 Flex |
Redis Cloud 灵活且每年 |
Redis Cloud 免费和固定 |
说明 |
|---|---|---|---|---|
| ❌ 不支持 | ❌ 不支持 | ❌ 不支持 | ❌ 不支持 |
返回值
RESP2
以下之一:
RESP3
以下之一:
资料来源:Redis 官方 FT.ALIASLIST 文档;中文内容参考 Redis 文档许可。