[Dovecot] FTS indexing

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Tue Sep 11 19:54:07 EEST 2012


* Timo Sirainen <tss at iki.fi>:
> On 11.9.2012, at 19.23, Ralf Hildebrandt wrote:
> 
> > I'm reacreating all FTS indices on all my users' INBOX folders:
> > mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes
> 
> You shouldn't need to do this. It's created automatically. Also by "recreating" do you mean that the users already had Lucene indexes and you deleted them?

There weren't any. That's why I tried creating them!

> > tbudkevy 29186  3.7  0.0   6616  3056 ?        S    18:11   0:15 dovecot/indexer-worker [tschuetz INBOX]
> > 
> > how can a dovecot/indexer-worker actually access the INBOX of the
> > user "tschuetz" (where "tbudkevy" doesn't have access, due to the
> > different UID)...?
> 
> indexer-worker runs basically as chroot, but it doesn't bother
> switching back to root immediately. My guess is that this was a very
> brief race condition in ps between reading process's UID and the
> command line. Unless you can easily reproduce this?

Can't :)

> > Should ~%s/Maildir/lucene-indexes be filled after having run the command
> > sequence for all users?
> 
> Only if there was something in the INBOX.

My users ALWAYS have something in their inbox :)

> Also if users already had previous Lucene indexes it doesn't work, you
> need to run doveadm fts rescan because dovecot.index remembers which
> message was last indexed to Lucene.

OK; I'll try that. Where do I finde the lucene index? I didn't find
any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to
create the directories.



-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt at charite.de | http://www.charite.de
	    



More information about the dovecot mailing list