[Dovecot] Solr's index update

Rui Carneiro rui.arc at gmail.com
Tue Mar 31 22:39:57 EEST 2009


On Tue, Mar 31, 2009 at 7:28 PM, Timo Sirainen <tss at iki.fi> wrote:

> 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.
>

Ok, I will take a look soon

Thank you for your help ;)


More information about the dovecot mailing list