简体   繁体   English

如何从 Redisearch 的索引中删除所有文档?

[英]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.我希望从 Redisearch 的特定索引中删除所有文档。 I have come across commands for deleting records with the documentid known.我遇到了用于删除已知 documentid 的记录的命令。 Can we delete all the records without using documentids?我们可以在不使用 documentids 的情况下删除所有记录吗?

Please suggest something.请提出一些建议。 Thank you.谢谢你。

Could you just drop the index FT.DROPINDEX and recreate it?您可以删除索引FT.DROPINDEX并重新创建它吗?

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" .在你的情况下可能已经解决了,但是由于谷歌将这里作为第一个结果之一发送并且它仍然没有解决:使用FT.DROP "indexName" It's not to be found in the official documentation list but for me it worked.它不在官方文档列表中,但对我来说它有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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