We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e601aa7 commit 47b5dd0Copy full SHA for 47b5dd0
redis/commands/search/commands.py
@@ -20,6 +20,7 @@
20
ADD_CMD = "FT.ADD"
21
ADDHASH_CMD = "FT.ADDHASH"
22
DROP_CMD = "FT.DROP"
23
+DROPINDEX_CMD = "FT.DROPINDEX"
24
EXPLAIN_CMD = "FT.EXPLAIN"
25
EXPLAINCLI_CMD = "FT.EXPLAINCLI"
26
DEL_CMD = "FT.DEL"
@@ -170,8 +171,8 @@ def dropindex(self, delete_documents=False):
170
171
172
For more information see `FT.DROPINDEX <https://redis.io/commands/ft.dropindex>`_.
173
""" # noqa
- keep_str = "" if delete_documents else "KEEPDOCS"
174
- return self.execute_command(DROP_CMD, self.index_name, keep_str)
+ delete_str = "DD" if delete_documents else ""
175
+ return self.execute_command(DROPINDEX_CMD, self.index_name, delete_str)
176
177
def _add_document(
178
self,
0 commit comments