content/commands/ft.synupdate.md
Update a synonym group
is index name.
</details> <details open> <summary><code>synonym_group_id</code></summary>is synonym group to return.
</details>Use FT.SYNUPDATE to create or update a synonym group with additional terms. The command triggers a scan of all documents.
does not scan and index, and only documents that are indexed after the update are affected.
</details>{{< highlight bash >}} 127.0.0.1:6379> FT.SYNUPDATE idx synonym hello hi shalom OK {{< / highlight >}}
{{< highlight bash >}} 127.0.0.1:6379> FT.SYNUPDATE idx synonym SKIPINITIALSCAN hello hi shalom OK {{< / highlight >}}
</details>| Redis Software | Redis Cloud Flexible & Annual | Redis Cloud Free & Fixed | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</nobr></span> | |
{{< multitabs id="ft-synupdate-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
OK if executed correctly.-tab-sep-
One of the following:
OK if executed correctly.{{< /multitabs >}}
[FT.SYNDUMP]({{< relref "commands/ft.syndump/" >}})
[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})