I want all the documents to be removed from a particular index in Redisearch. I have come across commands for deleting records with the documentid known. Can we delete all the records without using documentids?
Please suggest something. Thank you.
I want all the documents to be removed from a particular index in Redisearch. I have come across commands for deleting records with the documentid known. Can we delete all the records without using documentids?
Please suggest something. Thank you.
2
Answers
Could you just drop the index
FT.DROPINDEX
and recreate it?Probably already solved in your case, but since the google sends here as one of the first result and it’s still not resolved:
Use
FT.DROP "indexName"
.It’s not to be found in the official documentation list but for me it worked.