grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
91 stars 19 forks source link

Is it still required to add a daily cron job to run `doveadm fts optimize -A`? #160

Closed iredmail closed 1 month ago

iredmail commented 2 months ago

Dear @grosjo,

Dovecot document says it's done automatically by the FTS engine:

doveadm fts optimize [-u user | -A | -F file] [-S socket_path] [namespace]

Optimize the full text search index. This is also done automatically by the full text search engines, but this enforces it to happen.

But your document says You shall put in a cron the following command (for daily run for instance). So the question is, is it still required to add such daily cron job to run doveadm fts optimize -A?

grosjo commented 1 month ago

It is not required, but the there is no certainty that this cleanup is triggered regularly by dovecot, so better put it in your cron. If you don't, some index may get bigger for no reason, not an issue I beleive just a concern.