简体   繁体   中英

How to remove all the documents from an index in Redisearch?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM