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
Please note that "cpusername" should be replaced by the cPanel username that owns the email account.
From the script's "help" output:
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.
You can find more information via our documentation below:
cPanel & WHM Documentation - The rescan_user_dovecot_fts Script
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
Comments
0 comments
Article is closed for comments.