31 Mar
2009
31 Mar
'09
9:28 p.m.
On Tue, 2009-03-31 at 19:21 +0100, Rui Carneiro wrote:
Another question. I read this on the TODO list:
fts-solr: handle DELETE, RENAME
I am interested to look deeper on this. Any start advice?
Since Solr data can't be modified, both of these have to be handled the same way: Just deleting the data from Solr indexes. You'll probably have to do this like:
Hook into mailbox_list.delete_mailbox() in fts plugin (similar to like how e.g. quota plugin does in quota_mailbox_list_delete()).
Add a new delete_mailbox() function to struct fts_backend_vfuncs and have your delete_mailbox() call that before calling super.delete_mailbox().
Hook into the delete_mailbox() in fts-solr and have it execute a query that deletes everything from the given mailbox.