Skip to content

Commit 41ade0a

Browse files
Marks old RediSearch 1.0 commands as deprecated
1 parent 4e59d24 commit 41ade0a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

redis/commands/search/commands.py

Lines changed: 6 additions & 2 deletions
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,9 @@ 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(
408+
version="2.0.0", reason="deprecated since redisearch 2.0"
409+
)
409410
def delete_document(self, doc_id, conn=None, delete_actual_document=False):
410411
"""
411412
Delete a document from index
@@ -440,6 +441,9 @@ def load_document(self, id):
440441

441442
return Document(id=id, **fields)
442443

444+
@deprecated_function(
445+
version="2.0.0", reason="deprecated since redisearch 2.0"
446+
)
443447
def get(self, *ids):
444448
"""
445449
Returns the full contents of multiple documents.

0 commit comments

Comments
 (0)