class_docstr: Search commands.
class_docstr_tok: ["Search","commands","."]
docstr: Updates a synonym group.
  The command is used to create or update a synonym group with
  additional terms.
  Only documents which were indexed after the update will be affected.
  
  Parameters:
  
  groupid :
      Synonym group id.
  skipinitial : bool
      If set to true, we do not scan and index.
  terms :
      The terms.
  
  For more information see `FT.SYNUPDATE <https://redis.io/commands/ft.synupdate>`_.
docstr_tok: ["Updates","a","synonym","group",".","The","command","is","used","to","create","or","update","a","synonym","group","with","additional","terms",".","Only","documents","which","were","indexed","after","the","update","will","be","affected",".","Parameters",":","groupid",":","Synonym","group","id",".","skipinitial",":","bool","If","set","to","true",",","we","do","not","scan","and","index",".","terms",":","The","terms",".","For","more","information","see","`","FT.SYNUPDATE","<","https",":","\/\/redis.io\/commands\/ft.synupdate",">","`","_","."]
code: def synupdate(
      self, groupid: str, skipinitial: bool = False, *terms: List[str]
  ):
      """
      Updates a synonym group.
      The command is used to create or update a synonym group with
      additional terms.
      Only documents which were indexed after the update will be affected.
  
      Parameters:
  
      groupid :
          Synonym group id.
      skipinitial : bool
          If set to true, we do not scan and index.
      terms :
          The terms.
  
      For more information see `FT.SYNUPDATE <https://redis.io/commands/ft.synupdate>`_.
      """  # noqa
      cmd = [SYNUPDATE_CMD, self.index_name, groupid]
      if skipinitial:
          cmd.extend(["SKIPINITIALSCAN"])
      cmd.extend(terms)
      return self.execute_command(*cmd)
  
imports: import itertools
  import time
  from typing import Dict, List, Optional, Union
  from redis.client import Pipeline
  from redis.utils import deprecated_function
  from ..helpers import get_protocol_version, parse_to_dict
  from ._util import to_string
  from .aggregation import AggregateRequest, AggregateResult, Cursor
  from .document import Document
  from .query import Query
  from .result import Result
  from .suggestion import SuggestionParser
label_desc: Use image node_id 43 for calling the SearchCommands obj's underlying member method code with example usage: obj.synupdate(groupid, skipinitial) and returns: self