---
acl_categories:
- '@search'
arguments:
- name: index
type: string
- name: synonym_group_id
type: string
- name: skipinitialscan
optional: true
token: SKIPINITIALSCAN
type: pure-token
- multiple: true
name: term
type: string
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
command_flags:
- readonly
complexity: O(1)
description: Creates or updates a synonym group with additional terms
group: search
hidden: false
linkTitle: FT.SYNUPDATE
module: Search
railroad_diagram: /images/railroad/ft.synupdate.svg
since: 1.2.0
stack_path: docs/interact/search-and-query
summary: Creates or updates a synonym group with additional terms
syntax: "FT.SYNUPDATE index synonym_group_id \n [SKIPINITIALSCAN] term [term ...]\n"
syntax_fmt: "FT.SYNUPDATE index synonym_group_id [SKIPINITIALSCAN] term [term\n ...]"
title: FT.SYNUPDATE
---
Update a synonym group
[Examples](#examples)
## Required arguments
index
is index name.
synonym_group_id
is 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.
## Optional parameters
SKIPINITIALSCAN
does not scan and index, and only documents that are indexed after the update are affected.
## Examples
Update a synonym group
{{< 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 >}}
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis Cloud
Flexible & Annual | Redis Cloud
Free & Fixed | Notes |
|:----------------------|:-----------------|:-----------------|:------|
| ✅ Supported | ✅ Supported | ✅ Supported | |
## Return information
{{< multitabs id="ft-synupdate-return-info"
tab1="RESP2"
tab2="RESP3" >}}
One of the following:
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly.
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: no such index.
-tab-sep-
One of the following:
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly.
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: no such index.
{{< /multitabs >}}
## See also
[`FT.SYNDUMP`]({{< relref "commands/ft.syndump/" >}})
## Related topics
[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})