There is no separate update command for search. Use regular Redis write commands to change your data.
- JSON commands such as
JSON.SET,JSON.MERGE, … - Hash commands such as
HSET,HINCRBY, … - String commands such as
SET,SETEX, … - Generic commands such as
DEL,EXPIRE,PEXPIRE, …
SEARCH.WAITINDEXING when you need to ensure queries reflect recent changes.
JSON Documents
For JSON indexes, any JSON command that modifies a matching key updates the indexed document.- TypeScript
- Python
- Redis CLI
Hash Documents
For hash indexes, any hash command that modifies a matching key updates the indexed document.- TypeScript
- Python
- Redis CLI
String Documents
For string indexes, indexed keys must contain valid JSON strings. Any command that replaces or modifies the matching string key updates the indexed document.- TypeScript
- Python
- Redis CLI
Deletes
Deleting a matching key removes the document from the index.- TypeScript
- Python
- Redis CLI
Expiration
When a matching key expires, Upstash Redis Search removes the expired document from the index.- TypeScript
- Python
- Redis CLI