MCPcopy
hub / github.com/redis/redis-py / syndump

Method syndump

redis/commands/search/commands.py:1730–1740  ·  view source on GitHub ↗

Dumps the contents of a synonym group. The command is used to dump the synonyms data structure. Returns a list of synonym terms and their synonym group ids. For more information see `FT.SYNDUMP <https://redis.io/commands/ft.syndump>`_.

(self)

Source from the content-addressed store, hash-verified

1728 return self.execute_command(*cmd)
1729
1730 def syndump(self):
1731 """
1732 Dumps the contents of a synonym group.
1733
1734 The command is used to dump the synonyms data structure.
1735 Returns a list of synonym terms and their synonym group ids.
1736
1737 For more information see `FT.SYNDUMP <https://redis.io/commands/ft.syndump>`_.
1738 """ # noqa
1739 res = self.execute_command(SYNDUMP_CMD, self.index_name)
1740 return self._parse_results(SYNDUMP_CMD, res)
1741
1742
1743class AsyncSearchCommands(SearchCommands):

Callers 1

test_syndumpMethod · 0.80

Calls 2

_parse_resultsMethod · 0.95
execute_commandMethod · 0.45

Tested by 1

test_syndumpMethod · 0.64