-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doveadm fts rescan
removes all indices
#15
Comments
I asked the dovecot mailing list, becuase this is a limitation from the design |
Below the answer from Timo. I find then command "doveadm index -A -q *" rather handy, instead of "doveadm fts rescan" -------- Original Message -------- Hi, The rescan() function is a bit badly designed. Currently what you could do what fts-lucene does and:
The expunging of rest of the mails is rather ugly, yes.. A better API would be if backend simply had a way to iterate all mails in the index, preferrably sorted by folder. Then a more generic code could go through them and expunge the necessary mails and index the missing mails. Although not all FTS backends support indexing in the middle. Anyway, we don't really have time to implement this new API soon. I'm not sure if this is a big problem though. I don't think most people running FTS have ever run rescan. |
No real care from dovecot team about the matter. CLosing this |
doveadm fts rescan -A
deletes all indices, ie. all folders and files in thexapian-indexes
are deleted. However, according toman doveadm fts
, therescan
command should onlyDeleting all indices does not seem to be the intended action, especially as constructing the index anew may take very long on large mailboxes.
The text was updated successfully, but these errors were encountered: