RediSearch / redisearch-py

RediSearch python client

Home Page:https://redisearch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'load_document' can load deleted data

new-commer opened this issue · comments

I delete the data manually via FT.DEL. And i did the check by ft.get make sure it had been deleted.

Then i run my python code load_document, it can load the deleted data.

Any suggestions ?

How did you add the the doc at the first place?

Hey @new-commer ,
When you use the FT.DEL command it just deletes the index of the document and not the actual document.
That's why FT.GET command didn't return your document because its index has been deleted.
To delete the actual document along with its index you have to pass the argument DD after the document id in FT.DEL command.

And load_document in redisearch-py internally uses HGETALL command. That's why you are able to load the document.

Also, #69 adds the support for DD argument in redisearch-py.

Got it. Thank you.