Updating index after couchdb _purge #178

Open
matcho opened this Issue Aug 30, 2013 · 3 comments

Projects

None yet

2 participants

@matcho
matcho commented Aug 30, 2013

When performing a couchdb _purge operation, documents are not marked as deleted, but totally wiped from the db. This operation doesn't add any information in the _changes feed, so c-l cannot be aware of the documents being removed.

A solution would be to invalidate the whole index, but if you purged one doc among 1 billion indexed... you see what I mean.

Could it be possible to send to c-l a list of doc ids to remove them from the index?

Thanks,
Mat

@rnewson
Owner
rnewson commented Aug 30, 2013

c-l could be enhanced to do the same as views which can tolerate a single _purge without having to blow the inde away entirely, and c-l should also blow the index away when it detects that the databases purge_seq has incremented more than once since last index.

@matcho
matcho commented Aug 30, 2013

Thanks for your answer, this seems a good way to adress the issue. I will suggest my team to contribute.

@rnewson
Owner
rnewson commented Aug 30, 2013

Excellent, thanks!

On 30 August 2013 11:05, MatCho notifications@github.com wrote:

Thanks for your answer, this seems a good way to adress the issue. I will
suggest my team to contribute.


Reply to this email directly or view it on GitHubhttps://github.com/rnewson/couchdb-lucene/issues/178#issuecomment-23551785
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment