FT.SYNUPDATE
FT.SYNUPDATE index synonym_group_id [SKIPINITIALSCAN] term [term ...]
Update a synonym group
indexis index name.
synonym_group_idis synonym group to return.
Use FT.SYNUPDATE to create or update a synonym group with additional terms. The command triggers a scan of all documents.
SKIPINITIALSCANdoes not scan and index, and only documents that are indexed after the update are affected.
FT.SYNUPDATE returns a simple string reply OK if executed correctly, or an error reply otherwise.
127.0.0.1:6379> FT.SYNUPDATE idx synonym hello hi shalom
OK127.0.0.1:6379> FT.SYNUPDATE idx synonym SKIPINITIALSCAN hello hi shalom
OK
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/ft.synupdate/