This guide describes all of the important features and functions of Apache Solr.
Solr is free to download from http://lucene.apache.org/solr/.
Designed to provide high-level documentation, this guide is intended to be more encyclopedic and less of a cookbook. It is structured to address a broad spectrum of needs, ranging from new developers getting started to well-experienced developers extending their application or troubleshooting. It will be of use at any point in the application life cycle, for whenever you need authoritative information about Solr.
The material as presented assumes that you are familiar with some basic search concepts and that you can read XML. It does not assume that you are a Java programmer, although knowledge of Java is helpful when working directly with Lucene or when developing custom extensions to a Lucene/Solr installation.
Hosts and Port Examples
The default port when running Solr is 8983. The samples, URLs and screenshots in this guide may show different ports, because the port number that Solr uses is configurable.
If you have not customized your installation of Solr, please make sure that you use port 8983 when following the examples, or configure your own installation to use the port numbers shown in the examples. For information about configuring port numbers, see the section Monitoring Solr.
Similarly, URL examples use
localhost throughout; if you are accessing Solr from a location remote to the server hosting Solr, replace
localhost with the proper domain or IP where Solr is running.
For example, we might provide a sample query like:
There are several items in this URL you might need to change locally. First, if your server is running at "www.example.com", you’ll replace "localhost" with the proper domain. If you aren’t using port 8983, you’ll replace that also. Finally, you’ll want to replace "gettingstarted" (the collection or core name) with the proper one in use in your implementation. The URL would then become:
Path information is given relative to
solr.home, which is the location under the main Solr installation where Solr’s collections and their
data directories are stored.
When running the various examples mentioned through out this tutorial (i.e.,
bin/solr -e techproducts) the
solr.home will be a sub-directory of
example/ created for you automatically.
Special Inline Notes
Special notes are included throughout these pages. There are several types of notes:
|These provide additional information that’s useful for you to know.|
|These provide information that is critical for you to know.|
|These provide helpful tips.|
|These provide details on scenarios or configurations you should be careful with.|
|These are meant to warn you from a possibly dangerous change or action.|