[Dovecot] doveadm index
Does "doveadm index -A INBOX" reindex everything? What about users with multiple folders, both subbed & not subbed under INBOX?
-- Daniel
On Wed, 2011-12-14 at 19:27 -0800, Daniel L. Miller wrote:
Does "doveadm index -A INBOX" reindex everything? What about users with multiple folders, both subbed & not subbed under INBOX?
It indexes INBOX (only) for all users. And it doesn't "reindex" anything, it just adds any missing stuff.
On 12/20/2011 2:18 AM, Timo Sirainen wrote:
On Wed, 2011-12-14 at 19:27 -0800, Daniel L. Miller wrote:
Does "doveadm index -A INBOX" reindex everything? What about users with multiple folders, both subbed& not subbed under INBOX? It indexes INBOX (only) for all users. And it doesn't "reindex" anything, it just adds any missing stuff.
Ok - IS there a command that will ... fully update ... all folders for all users? Will something like "doveadm search -A text zyxabcxyz > /dev/null" work?
-- Daniel
On 20.12.2011, at 22.02, Daniel L. Miller wrote:
On 12/20/2011 2:18 AM, Timo Sirainen wrote:
On Wed, 2011-12-14 at 19:27 -0800, Daniel L. Miller wrote:
Does "doveadm index -A INBOX" reindex everything? What about users with multiple folders, both subbed& not subbed under INBOX? It indexes INBOX (only) for all users. And it doesn't "reindex" anything, it just adds any missing stuff.
Ok - IS there a command that will ... fully update ... all folders for all users? Will something like "doveadm search -A text zyxabcxyz > /dev/null" work?
For updating full text search indexes, I guess you could do a "doveadm fetch uid text asdfasf > /dev/null"..
But some day doveadm index (and several other commands) should allow wildcards in mailbox names, so you could just do doveadm index -A '*'
On 21.12.2011 07:26, wrote Timo Sirainen:
On 20.12.2011, at 22.02, Daniel L. Miller wrote:
On 12/20/2011 2:18 AM, Timo Sirainen wrote:
On Wed, 2011-12-14 at 19:27 -0800, Daniel L. Miller wrote:
Does "doveadm index -A INBOX" reindex everything? What about users with multiple folders, both subbed& not subbed under INBOX? It indexes INBOX (only) for all users. And it doesn't "reindex" anything, it just adds any missing stuff.
Ok - IS there a command that will ... fully update ... all folders for all users? Will something like "doveadm search -A text zyxabcxyz> /dev/null" work?
For updating full text search indexes, I guess you could do a "doveadm fetch uid text asdfasf> /dev/null"..
But some day doveadm index (and several other commands) should allow wildcards in mailbox names, so you could just do doveadm index -A '*'
Actually I'm using doveadm index -A '*' in a daily cron job and it seems to work for me. At least the timestamps of the dovecot.index.search and dovecot.index.search.uids files equal or close to the cron job start time in every folder.
Is there a way to examine the search index? Doveadm dump doesn't seem to like it.
$: doveadm dump dovecot.index.search $: doveadm(vmail): Fatal: Can't autodetect file type: dovecot.index.search
Thanks, e-frog
On 21.12.2011, at 19.35, e-frog wrote:
But some day doveadm index (and several other commands) should allow wildcards in mailbox names, so you could just do doveadm index -A '*'
Actually I'm using doveadm index -A '*' in a daily cron job and it seems to work for me.
Yes, looks like it does. I changed the doveadm help output to make it clearer.
At least the timestamps of the dovecot.index.search and dovecot.index.search.uids files equal or close to the cron job start time in every folder.
Is there a way to examine the search index? Doveadm dump doesn't seem to like it.
$: doveadm dump dovecot.index.search $: doveadm(vmail): Fatal: Can't autodetect file type: dovecot.index.search
No, you can't dump Squat indexes. v2.1 can dump fts-lucene indexes though.
On 09.02.2012 03:29, wrote Timo Sirainen:
On 21.12.2011, at 19.35, e-frog wrote:
But some day doveadm index (and several other commands) should allow wildcards in mailbox names, so you could just do doveadm index -A '*'
Actually I'm using doveadm index -A '*' in a daily cron job and it seems to work for me.
Yes, looks like it does. I changed the doveadm help output to make it clearer.
Thanks.
At least the timestamps of the dovecot.index.search and dovecot.index.search.uids files equal or close to the cron job start time in every folder.
Is there a way to examine the search index? Doveadm dump doesn't seem to like it.
$: doveadm dump dovecot.index.search $: doveadm(vmail): Fatal: Can't autodetect file type: dovecot.index.search
No, you can't dump Squat indexes. v2.1 can dump fts-lucene indexes though.
Ok, I'm meanwhile running v2.1 and switched to fts-lucene. Works like a charm!
participants (3)
-
Daniel L. Miller
-
e-frog
-
Timo Sirainen