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

Method sugdel

redis/commands/search/commands.py:1641–1648  ·  view source on GitHub ↗

Delete a string from the AutoCompleter index. Returns 1 if the string was found and deleted, 0 otherwise. For more information see `FT.SUGDEL <https://redis.io/commands/ft.sugdel>`_.

(self, key: str, string: str)

Source from the content-addressed store, hash-verified

1639 return self.execute_command(SUGLEN_COMMAND, key)
1640
1641 def sugdel(self, key: str, string: str) -> int:
1642 """
1643 Delete a string from the AutoCompleter index.
1644 Returns 1 if the string was found and deleted, 0 otherwise.
1645
1646 For more information see `FT.SUGDEL <https://redis.io/commands/ft.sugdel>`_.
1647 """ # noqa
1648 return self.execute_command(SUGDEL_COMMAND, key, string)
1649
1650 def sugget(
1651 self,

Callers 2

test_auto_completeMethod · 0.80
test_auto_completeMethod · 0.80

Calls 1

execute_commandMethod · 0.45

Tested by 2

test_auto_completeMethod · 0.64
test_auto_completeMethod · 0.64