SOLR Installation Instructions

Before you start

There are two options available for installing SOLR. Please review the documentation to determine which option best meets your needs.

This guide provides instructions for a basic distributed installation. If you are doing an advanced distributed installation, please follow the instructions in the Type 3 link above.

Note: It is recommended to copy and paste the code provided in these instructions.

1. Ensure that your machine meets the hardware and software requirements listed in the links above.

Note: Java must be installed before you begin the installation.

2. It is recommended to create the user asolr.

useradd -m asolr

3. Create a password for asolr.

passwd asolr

4. Become user asolr.

su - asolr

5. Download the package.

cd /home/asolr

6. When the download is complete, untar the file.

tar zxvf alexandria-solr-v2.1.2-standalone-distribution.tar.gz
cd /home/asolr/alexandria-solr-v2.1.2-standalone-distribution

7. Using a text editor, adjust solr-alexandria-vars. Confirm or set the following variables.




ALEXANDRIA_SOLR_PORT 8080The port SOLR (Jetty) should listen on and accept requests.
ALEXANDRIA_SOLR_URL$ALEXANDRIA_SOLR_PORT/$ALEXANDRIA_SOLR_CONTEXTThe URL to configure collections. The IP address should be the local address of the server.
ALEXANDRIA_SOLR_JVM_MEM64gThis is the java heap setting. Generally speaking, you should allocate at least 64g. The exact amount should be approximately 80% of total memory.

8. Start SOLR. Note that it may take 3-4 weeks to complete the initial indexing process.

./solrctl start

9. Edit the following URL to reflect your IP address: You can now visit this address in your browser to see the SOLR interface. 

10. On the server with Alexandria-Client-Tools installed, configure, enable and start the indexing service.

a) Edit /etc/alexandria.xml, set @base to IP/hostname of SOLR installation.

  <index name="alexandria" base="">
      <core name="alexandria" desc="Full Alexandria Index" />
      <core name="alexandria-standard" desc="Full Alexandria Index" />
      <core name="alexandria-premium" desc="Full Alexandria Index" />
      <core name="alexandria-premium-plus" desc="Full Alexandria Index" />

b) Enable and start service. If necessary, adjust the code to reflect the version you are using.

# Amazon
chkconfig aidxd
# CentOS 8 / RHEL 8
systemctl enable aidxd.service

# Amazon
service aidxd start
# CentOS 8 / RHEL 8
systemctl start aidxd.service

11. If you are undertaking a complete re-index of all data, please see Re-indexing Data from CLAIMS Direct Data Warehouse.

Note: You can check on the progress of the indexing process in two ways.

The SOLR Administration User Interface

1. Visit the URL (assuming you are on the same network as SOLR or can access it). Edit the URL to reflect your IP address. This will bring you to the Dashboard.

2. Use the Core Selector drop down and choose 'alexandria'. From this page you can see various statistics such as:

Last Modified:
Num Docs:
Max Doc:
Heap Memory Usage:
Deleted Docs:

3. Num Docs represents the number of documents currently available in the index. To learn more about the SOLR Administration User Interface, see


1. Submit the following query to the SOLR API. Edit the code to reflect your IP address.

$ wget -O- -q '*:*&rows=0'

2. The result will show numFound, which is equivalent to Num Docs in the interface.


Next Steps

Once SOLR has been installed, proceed to Web Server Installation (if desired).

Further Reading