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
curl
curl