Aurora documentation

Setting up Solr to improve search performance

While performing IMAP search on just the headers is usually fast, running search in message text in standard setup of Aurora could use improvement. That's done by setting up and configuring an additional search module, we use Apache Solr for this purpose.

The configuration is performed as follows:

1. Download and unpack Solr:

cd /root
tar -xvzf ./solr-7.3.1.tgz
cp -R /root/solr-7.3.1 /opt/afterlogic

2. Install Java:

yum install java-1.8.0-openjdk

3. Place schema file:

mkdir -p /opt/afterlogic/solr-7.3.1/example/solr/
cp /root/solr-schema.xml /opt/afterlogic/solr-7.3.1/example/solr/schema.xml

4. Disable ULimit checks:

Edit /opt/afterlogic/solr-7.3.1/bin/, uncomment and set the following value:


5. Start Solr

cd  /opt/afterlogic/solr-7.3.1/bin/
./solr start -e cloud -noprompt -force

6. Add configuration options into plugin section of /opt/afterlogic/etc/dovecot.conf file:

plugin { 
 fts = solr
 fts_solr = break-imap-search url=http://localhost:8983/solr/
 fts_decoder = decode2text
 fts_autoindex = yes
 fts_autoindex_max_recent = 100000

7. Restart IMAP service:

/opt/afterlogic/etc/init.d/dovecot.rc restart