Download and extract Solr

Download a supported Solr package and extract it to a directory of your choice, which will be the installation directory.

The available packages are:

  • solr-X.Y.Z.tgz (for Linux/Unix/OS X)

  • solr-X.Y.Z.zip (for Microsoft Windows)

Instead of X.Y.Z use the supported version number according to the [T Compatibility Guide].

To extract the package on Linux you can use the following command:

tar zxf solr-X.Y.Z.tgz

After extracting the Solr package you can see the following directories:

Figure 515: Solr directory structure

Here is just a brief overview what you can find in the directories:

  • The bin/ directory includes several important scripts that will make using Solr easier.

  • The contrib/ directory includes add-on plugins for specialized features of Solr.

  • The dist/ directory contains the main Solr .jar files.

  • The docs/ directory includes a link to online Javadocs for Solr.

  • The example/ directory includes several types of examples that show various Solr capabilities.

  • The licenses/ directory includes all licenses for 3rd party libraries used by Solr.

  • The server/ directory is where the heart of the Solr application resides. Within this directory you can find the Solr log files under server/logs.