sthen f8a765e411 update to dovecot-fts-xapian 1.3.1, from maintainer Tom Wong-Cornall,
I tweaked Makefile variables a bit to avoid setting some unnecessary ones
2020-05-27 11:27:49 +00:00
..

$OpenBSD: README,v 1.3 2020/05/27 11:27:49 sthen Exp $

+-----------------------------------------------------------------------
| Running dovecot-fts-xapian on OpenBSD
+-----------------------------------------------------------------------

To use fts_xapian with Dovecot, ensure fts and fts_xapian plugins are
loaded. Adding them to mail_plugins in 10-mail.conf should suffice for
most users:

    mail_plugins = (...) fts fts_xapian (...)

The service's vsz_limit may need to be increased (or disabled) in 10-master.conf:

    service indexer-worker {
      vsz_limit = 0 # or 1GB etc.
    }

Then configure the plugin's settings in 90-plugin.conf:

    plugin {
      fts = xapian
      fts_xapian = partial=2 full=20 attachments=0 verbose=0

      fts_autoindex = yes
      fts_enforced = yes

      fts_autoindex_exclude = \Trash
    }

Parameters 'partial' and 'full' are required, and allow control over the length
of n-grams generated for searching header fields.

Parameter 'attachments' defaults to off. Setting it to 1 will enable indexing of
text attachments.

Parameter 'verbose' can be set between 0 (default) and 2 (debug) for more
detailed logging.

New mail will be indexed incrementally. Use doveadm-index(1) to index
existing mail, e.g.:

    doveadm index -A -q '*'