SEARCH.LISTINDEXES to list search indexes in the database.
MATCH filters index names with a glob-style pattern, while LIMIT and OFFSET page through the reply, which keeps the command usable on a database with many indexes. Only index names are returned; use SEARCH.DESCRIBE to see an index’s schema and settings.
See Listing Indexes for the feature guide.
Syntax
Arguments
Response
Returns one entry per index, sorted by index name. Each entry is a map containing the indexname and its backing type (HASH, JSON, or STRING). With RESP2, each map is encoded as an array of alternating keys and values.
Examples
The high-level Search APIs do not currently expose
SEARCH.LISTINDEXES. Use each client’s generic command method for this command.Redis CLI
Redis CLI
@upstash/redis
@upstash/redis
upstash_redis
upstash_redis
ioredis
ioredis
node-redis
node-redis
curl
curl