Lucene Full Text Search Indexing
The current Lucene implementation is a bit ugly and simultaneous access may give some errors. Use Solr instead if possible.
Dovecot builds only a single Lucene index for all mailboxes. In future this would allow support for searching messages quickly from all mailboxes. The Lucene indexes are stored in lucene-indexes/ directory under the root index directory (e.g. ~/Maildir/lucene-indexes/).
Configuration
protocol imap {
..
mail_plugins = fts fts_lucene
}
...
plugin {
fts = lucene
}