Apache Solr Documentation

5.1 Ref Guide (PDF Download)
Solr Tutorial
Solr Community Wiki

Older Versions of this Guide (PDF)

5.2 Draft Ref Guide Topics

Meta-Documentation

This Unreleased Guide Will Cover Apache Solr 5.2

Skip to end of metadata
Go to start of metadata

This section describes how to install Solr. You can install Solr in any system where a suitable Java Runtime Environment (JRE) is available, as detailed below. Currently this includes Linux, OS X, and Microsoft Windows. The instructions in this section should work for any platform, with a few exceptions for Windows as noted.

Got Java?

You will need the Java Runtime Environment (JRE) version 1.7 or higher. At a command line, check your Java version like this:

The output will vary, but you need to make sure you have version 1.7 or higher. If you don't have the required version, or if the java command is not found, download and install the latest version from Oracle at http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Installing Solr

Solr is available from the Solr website at http://lucene.apache.org/solr/.

For Linux/Unix/OSX systems, download the .tgz file. For Microsoft Windows systems, download the .zip file. When getting started, all you need to do is extract the Solr distribution archive to a directory of your choosing. When you're ready to setup Solr for a production environment, please refer to the instructions provided on the Taking Solr to Production page. To keep things simple for now, extract the Solr distribution archive to your local home directory, for instance on Linux, do:

Once extracted, you are now ready to run Solr using the instructions provided in the Running Solr section.

 

Labels
  • No labels
  1. The directions above using the example directory provide a roughly configured and older version of Jetty running Solr from unclean directories.  For a clean install, read the SolrInstall topic linked above with topics for specific application servers, or use a stand-alone server such as Solr-Undertow (easy to configure, self-contained, high performance) for running without an application server.

  2. Isn't java 8 the required version for Solr 5.x?

    1. Java 7 is required for Solr 5.x, Java 8 is only required if you're running "trunk", a.k.a. Solr 6.x.

      1. Ah I see. Thank you.