On 14/04/2025 18:46 EEST Alexander Skwar via dovecot
     <dovecot@dovecot.org> wrote:
      
      
     Hello Michael,
      
     On Monday, 14. April 2025 17:19 CEST, Michael Slusarz
     <michael.slus...@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-flatcurve%20remove) 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?
      
      
 
doveadm -v index -A '*'
 
should do the trick.
 
Aki
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to