Hello Michael,
On Monday, 14. April 2025 17:19 CEST, Michael Slusarz <michael.slusarz@open-xchange.com> wrote:
On 04/14/2025 8:04 AM MDT Alexander Skwar via dovecot <dovecot@dovecot.org> wrote:
How do I reindex all e-mails (for a user or for all users) for FTS?
There is no generic command that works for all FTS drivers.
For flatcurve, you can run "doveadm fts-flatcurve remove" (https://slusarz.github.io/dovecot-fts-flatcurve/doveadm.html#doveadm%20fts-f...) for 2.3. (For 2.4, it is "doveadm fts flatcurve remove").
Okay, I've now removed the indexes for all users and all mailboxes.
askwar@mail /o/mailcow-dockerized [64]> sudo docker compose exec dovecot-mailcow doveadm fts-flatcurve remove -A '*' โฆ a@skwar.xyz ๐งโโ๏ธ ๐ ARCHIVE/๐ชฉ zzz 1 ๐ ARCHIV - Mรคrz 2025/Social Networks guid=1619e934a31bd9678e711600d49144d4 ๐งโโ๏ธ ๐ ARCHIVE/๐ชฉ zzz 1 ๐ ARCHIV - Mรคrz 2025/Social Networks/๐๏ธ๐ด Draussen guid=47ba8413b11bd967c1711600d49144d4 ๐งโโ๏ธ ๐ ARCHIVE/๐ชฉ zzz 1 ๐ ARCHIV - Mรคrz 2025/Social Networks/๐ข Job โ LinkedIn, Xing, โฆ guid=5f9e7c0bbe1bd967e4711600d49144d4 ๐งโโ๏ธ ๐ ARCHIVE/๐ชฉ zzz 1 ๐ ARCHIV - Mรคrz 2025/๐ช Shopping guid=18bddd23e61bd9671e721600d49144d4 โฆ
Correct, this is how FTS indexing works - a message is indexed once. If you change indexing configuration, you need to re-index. There is currently no way to force reindexing, or reindex a specific message, so the only solution is to delete the indexes entirely.
Will dovecot reindex all e-mails, now that I have removed all the indexes? Is there a way to check how far the indexing is?
Cheers,
Alexander