[Dovecot] Solr's index update
Hi all,
In the wiki says this: "Currently the indexes are updated only while searching" @ http://wiki.dovecot.org/Plugins/FTS
This also is applied to Solr Indexes? If not, when Solr Indexes are updated?
Thank you, Rui Carneiro
mail: rui.arc@gmail.com, rui.carneiro@portugalmail.net website: http://paginas.fe.up.pt/~ei04073<http://paginas.fe.up.pt/%7Eei04073>
On Mar 31, 2009, at 11:25 AM, Rui Carneiro wrote:
Hi all,
In the wiki says this: "Currently the indexes are updated only while searching" @ http://wiki.dovecot.org/Plugins/FTS
This also is applied to Solr Indexes?
Yes.
If not, when Solr Indexes are updated?
If you want them to be updated more often, you can issue SEARCH
commands in a cronjob or something.
On Tue, Mar 31, 2009 at 5:10 PM, Timo Sirainen <tss@iki.fi> wrote:
On Mar 31, 2009, at 11:25 AM, Rui Carneiro wrote:
Hi all,
In the wiki says this: "Currently the indexes are updated only while searching" @ http://wiki.dovecot.org/Plugins/FTS
This also is applied to Solr Indexes?
Yes.
If not, when Solr Indexes are updated?
If you want them to be updated more often, you can issue SEARCH commands in a cronjob or something.
I will take your advice :)
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?
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.
On Tue, Mar 31, 2009 at 7:28 PM, Timo Sirainen <tss@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:
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.
Ok, I will take a look soon
Thank you for your help ;)
participants (2)
-
Rui Carneiro
-
Timo Sirainen