开发者

How do I drop an index using Lucandra?

I am using Lucandra and want to drop 开发者_如何学Pythonan entire index. The IndexReader and IndexWriters don't have all methods implemented so even iterating through a call to deleteDocument(int docNum) isn't possible.

Has anyone run up against this and either figured out how to either

  1. hack the Cassandra keyspace or
  2. made additions to the Lucandra code, or
  3. figured out how to construct an iterator to delete all docs?


The current version of lucandra doesn't store documents from 1-N so the deleteDocument(int) doesn't work.

What I've done is index a field with the same term in all documents so you can match all documents then delete them with deleteDocuments(Term) call.

Another option (if you only have 1 index per keyspace) is to truncate the cassandra CFs

The next version of lucandra(in development) does store documents 1-N fashion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜