Skip to content

Commit 77e8db2

Browse files
Marks old RediSearch 1.0 commands as deprecated (#3606)
* Marks old RediSearch 1.0 commands as deprecated * linters
1 parent 0c24240 commit 77e8db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/commands/search/commands.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
SEARCH_CMD = "FT.SEARCH"
2424
ADD_CMD = "FT.ADD"
2525
ADDHASH_CMD = "FT.ADDHASH"
26-
DROP_CMD = "FT.DROP"
2726
DROPINDEX_CMD = "FT.DROPINDEX"
2827
EXPLAIN_CMD = "FT.EXPLAIN"
2928
EXPLAINCLI_CMD = "FT.EXPLAINCLI"
@@ -35,7 +34,6 @@
3534
DICT_ADD_CMD = "FT.DICTADD"
3635
DICT_DEL_CMD = "FT.DICTDEL"
3736
DICT_DUMP_CMD = "FT.DICTDUMP"
38-
GET_CMD = "FT.GET"
3937
MGET_CMD = "FT.MGET"
4038
CONFIG_CMD = "FT.CONFIG"
4139
TAGVALS_CMD = "FT.TAGVALS"
@@ -406,6 +404,7 @@ def add_document_hash(self, doc_id, score=1.0, language=None, replace=False):
406404
doc_id, conn=None, score=score, language=language, replace=replace
407405
)
408406

407+
@deprecated_function(version="2.0.0", reason="deprecated since redisearch 2.0")
409408
def delete_document(self, doc_id, conn=None, delete_actual_document=False):
410409
"""
411410
Delete a document from index
@@ -440,6 +439,7 @@ def load_document(self, id):
440439

441440
return Document(id=id, **fields)
442441

442+
@deprecated_function(version="2.0.0", reason="deprecated since redisearch 2.0")
443443
def get(self, *ids):
444444
"""
445445
Returns the full contents of multiple documents.

0 commit comments

Comments
 (0)