[Dovecot] Solr's index update

Timo Sirainen tss at iki.fi
Tue Mar 31 21:28:16 EEST 2009


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:

1. Hook into mailbox_list.delete_mailbox() in fts plugin (similar to
like how e.g. quota plugin does in quota_mailbox_list_delete()).

2. Add a new delete_mailbox() function to struct fts_backend_vfuncs and
have your delete_mailbox() call that before calling
super.delete_mailbox().

3. Hook into the delete_mailbox() in fts-solr and have it execute a
query that deletes everything from the given mailbox.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090331/f4e3a5e7/attachment.bin 


More information about the dovecot mailing list