How-to: FTS (full text search) in dovecot using solr

@Marks I didn't read previous ticket but:
/usr/local/php74/bin/pecl install solr
than add to: /usr/local/php74/lib/php.conf.d/99-directadmin.ini
extension=solr.so
or add it to php.ini, restart php-fpm (apache if mod_php)
for another php ver same way.
 
Hello All,
i apologize for reviving an old topic..
i'm a little dismayed that the xapian-indexes directory in most of the email accounts on my server is as large as the rest of the email..
For example, there is an email account where DirectAdmin reports 18GB of email, but the 'Maildir' directory takes up twice that because xapian-indexes takes up 17GB..

if i total up all the xapian-indexes directories, they use up nearly 63GB on a server where email (excluding xapian-indexes) takes up probably 120GB of storage space (it's a VPS)..

My (twofold) question is this:
if i remove xapian, and install solr instead, will it really save a lot of space?
will solr work as well as xapian -- almost everyone is either on iOS/macOS or RoundCube (no Windows products)?

Any help would be greatly appreciated!


EDIT:
here's an interesting tidbit:
as a test, i ran the following commands on my own email account:
doveadm fts rescan -u [email protected]
doveadm index -u [email protected] -q '*'
my email account is reported by DirectAdmin as having 1.05GB of email..
the xapian-indexes directory before i ran the above commands was 2.07GB..
after running these commands, it takes up 0.51GB

should i consider a 3rd alternative: keep xapian but 'purge' the indexes this way every 6 months or so?
 
Last edited:
Back
Top