This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

Lucene Full Text Search Indexing

NOTE: Although the fts-lucene plugin works, it's using CLucene library, which is very old and has some bugs. It's a much better idea to use fts-solr instead, which has much more features and is more stable.

Requires Dovecot v2.1+ to work properly. The CLucene version must be v2.3 (not v0.9). Dovecot builds only a single Lucene index for all mailboxes. The Lucene indexes are stored in lucene-indexes/ directory under the mail root index directory (e.g. ~/Maildir/lucene-indexes/).


If you compile Dovecot yourself, you must add the following switches to your configure command for the plugin to be built:

--with-lucene --with-stemmer

The second switch is only required if you have compiled libstemmer yourself or if it's included in the CLucene you are using.


Into 10-mail.conf (note add existing plugins to string)

mail_plugins = $mail_plugins fts fts_lucene

Into 90-plugins.conf

plugin {
  fts = lucene
  # Lucene-specific settings, good ones are:
  fts_lucene = whitespace_chars=@.

The fts-lucene settings include:


None: Plugins/FTS/Lucene (last edited 2016-04-06 08:23:52 by TimoSirainen)