Question
How do I rescan or reindex email data with Dovecot Solr (Full Text Search)?
Answer
If this needs to be rebuilt for specific users, the root user can utilize the following command via SSH or the WHM Terminal to rescan mailboxes with Dovecot Solr (Full Text Search):
# /scripts/rescan_user_dovecot_fts --user=cpusername
Note: "cpusername" should be replaced by the cPanel username that owns the email account.
From the script's "help" output:
CONFIG_TEXT: Usage:
rescan_user_dovecot_fts ( --user <username> | --help )
This script will call a dovecot FTS (full text search) rescan for each
mailbox on a specified account if the 'cpanel-dovecot-solr' RPM is
installed. If not, the script informs that the RPM isn't installed and
returns.
This command can be helpful if emails are not listed when searching the mailbox.
While the method above is on a per-user basis, this can be performed for the entire server by instead using the command below. This rebuilds the indexes completely for all users on the server:
# /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_rebuild_index
Additional Information
The rescan_user_dovecot_fts Script | cPanel & WHM Documentation
Comments
0 comments
Article is closed for comments.