Roundcube DA search not working

agaitan026

Verified User
Joined
Mar 24, 2021
Messages
42
Hi i just migrated from cpanel, but now the roundcube search function is not working, it doesnt found anything. How i can fix that?

thank you
 
I tried this doc:

CustomBuild 2.0 now supports fts-xapian, which allows for a very speedy full-text search of your emails.

To install fts-xapian, run:
cd /usr/local/directadmin/custombuild
./build update
./build dovecot
./build fts-xapian


but not working
 
What is not working?
How long has it been since you installed?
It has to index and based on size of email it can take a long time.
 
usually it trigered by you accessing the email.

Does it not search at all or is it just not fast. also did you mark the appropriate filters in rc

1616786853636.png

like current folder to all folders?
 
i just ran this right now:

for USER in `cat /etc/virtual/domainowners | cut -d: -f2 | cut -d\ -f2`
do
doveadm fts rescan -u $USER
done

and its working now, the search
 
i just ran this right now:

for USER in `cat /etc/virtual/domainowners | cut -d: -f2 | cut -d\ -f2`
do
doveadm fts rescan -u $USER
done

and its working now, the search

Want to confirm about rescan, from dovecot wiki

doveadm fts rescan
Scan what mails exist in the full text search index and compare those to what actually exist in mailboxes. This removes mails from the index that have already been expunged and makes sure that the next doveadm index will index all the missing mails (if any). Note that currently most FTS backends do not implement this properly, but instead they delete all the FTS indexes. This may change in the future versions.


doveadm index

Add unindexed messages in a mailbox into index/cache file. If full text search is enabled, also add unindexed messages to the fts database.

The caching adds only the fields that were previously added to the mailbox's caching decisions, so it won't do anything useful for mailboxes that user's client hasn't accessed yet. You can use doveadm dump command to show a specific mailbox's current caching decisions.

According to info, index will only start when user access email and only for folder they access. This is not desirable, in case user have lot of emails it will take time for index to build and meantime search will not work. Maybe add another line to routine so indexing is queued for all folder.

for USER in `cat /etc/virtual/domainowners | cut -d: -f2 | cut -d\ -f2`
do
doveadm fts rescan -u $USER
doveadm index -q -u $USER '*'
done

Have not tested as such but done it manually for couple of important email accounts.

# Make sure mailbox has no errors
doveadm -D force-resync -u <[email protected]> '*'

# Re-index the mailbox
# Will remove all indexes
doveadm fts rescan -u <[email protected]>

# Start new index
doveadm index -q -u <[email protected]> '*'

Thanks
 
Back
Top