1

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.

chaitra d
  • 45
  • 5

2 Answers2

0

Could you just drop the index FT.DROPINDEX and recreate it?

BSB
  • 1,516
  • 13
  • 14
  • I want only the data to be removed from the index, as recreating index might take much time. – chaitra d May 25 '21 at 14:08
  • And also even if I have to drop the index itself, I want all the records to be completely removed from redis in my requirement, for which I came across the command 'FT.dropindex indexname DD'. But I didn't get where to set 'DD' option when running the query through jredisearch API. Could you please tell where can I look for that? – chaitra d May 26 '21 at 09:17
0

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.