SEARCH.REINDEX to rebuild an existing index from the current Redis keys that match its data type and prefixes. It is especially useful after creating an index with SKIPINITIALSCAN.
See Index Management for the feature guide to creating and managing indexes.
SEARCH.REINDEX accepts an index name or alias. The index definition is preserved while its searchable contents are replaced with a fresh scan.
Syntax
Response
Returns1 when the index is rebuilt or 0 if the index does not exist.
Examples
Redis CLI
Redis CLI
@upstash/redis
@upstash/redis
This command is not supported yet in
@upstash/redis.upstash_redis
upstash_redis
This command is not supported yet in
upstash_redis.ioredis
ioredis
node-redis
node-redis
redis-py
redis-py
go-redis
go-redis
jedis
jedis
redis-rs
redis-rs
curl
curl