Mirror of Apache Lucene + Solr
Java HTML CSS Python JavaScript Shell Other
Switch branches/tags
releases/solr/1.4.0 releases/solr/1.3.0 releases/solr/1.2.0 releases/solr/1.1.0 releases/lucene/3.0.1 releases/lucene/3.0.0 releases/lucene/2.9.2 releases/lucene/2.9.1 releases/lucene/2.9.0 releases/lucene/2.4.1 releases/lucene/2.4.0 releases/lucene/2.3.2 releases/lucene/2.3.1 releases/lucene/2.3.0 releases/lucene/2.2.0 releases/lucene/2.1.0 releases/lucene/2.0.0 releases/lucene/1.9.1 releases/lucene/1.9 releases/lucene/1.9-rc1 releases/lucene/1.4.3 releases/lucene/1.4.2 releases/lucene/1.4.1 releases/lucene/1.4 releases/lucene/1.4-rc3 releases/lucene/1.4-rc2 releases/lucene/1.4-rc1 releases/lucene/1.3 releases/lucene/1.3-rc3 releases/lucene/1.3-rc2 releases/lucene/1.3-rc1 releases/lucene/1.2 releases/lucene/1.2-rc5 releases/lucene/1.2-rc4 releases/lucene/1.2-rc3 releases/lucene/1.2-rc2 releases/lucene/1.2-rc1 releases/lucene/1.0.1 releases/lucene-solr/7.4.0 releases/lucene-solr/7.3.1 releases/lucene-solr/7.3.0 releases/lucene-solr/7.2.1 releases/lucene-solr/7.2.0 releases/lucene-solr/7.1.0 releases/lucene-solr/7.0.1 releases/lucene-solr/7.0.0 releases/lucene-solr/6.6.5 releases/lucene-solr/6.6.4 releases/lucene-solr/6.6.3 releases/lucene-solr/6.6.2 releases/lucene-solr/6.6.1 releases/lucene-solr/6.6.0 releases/lucene-solr/6.5.1 releases/lucene-solr/6.5.0 releases/lucene-solr/6.4.2 releases/lucene-solr/6.4.1 releases/lucene-solr/6.4.0 releases/lucene-solr/6.3.0 releases/lucene-solr/6.2.1 releases/lucene-solr/6.2.0 releases/lucene-solr/6.1.0 releases/lucene-solr/6.0.1 releases/lucene-solr/6.0.0 releases/lucene-solr/5.5.5 releases/lucene-solr/5.5.4 releases/lucene-solr/5.5.3 releases/lucene-solr/5.5.2 releases/lucene-solr/5.5.1 releases/lucene-solr/5.5.0 releases/lucene-solr/5.4.1 releases/lucene-solr/5.4.0 releases/lucene-solr/5.3.2 releases/lucene-solr/5.3.1 releases/lucene-solr/5.3.0 releases/lucene-solr/5.2.1 releases/lucene-solr/5.2.0 releases/lucene-solr/5.1.0 releases/lucene-solr/5.0.0 releases/lucene-solr/4.10.4 releases/lucene-solr/4.10.3 releases/lucene-solr/4.10.2 releases/lucene-solr/4.10.1 releases/lucene-solr/4.10.0 releases/lucene-solr/4.9.1 releases/lucene-solr/4.9.0 releases/lucene-solr/4.8.1 releases/lucene-solr/4.8.0 releases/lucene-solr/4.7.2 releases/lucene-solr/4.7.1 releases/lucene-solr/4.7.0 releases/lucene-solr/4.6.1 releases/lucene-solr/4.6.0 releases/lucene-solr/4.5.1 releases/lucene-solr/4.5.0 releases/lucene-solr/4.4.0 releases/lucene-solr/4.3.1 releases/lucene-solr/4.3.0 releases/lucene-solr/4.2.1 releases/lucene-solr/4.2.0 releases/lucene-solr/4.1.0
Nothing to show
Clone or download
Latest commit 0d89ff2 Aug 14, 2018

README.md

Apache Lucene and Solr

Apache Lucene is a high-performance, full featured text search engine library written in Java.

Apache Solr is an enterprise search platform written using Apache Lucene. Major features include full-text search, index replication and sharding, and result faceting and highlighting.

Online Documentation

This README file only contains basic setup instructions. For more comprehensive documentation, visit:

Building Lucene/Solr

(You do not need to do this if you downloaded a pre-built package.)

Lucene and Solr are built using Apache Ant. To build Lucene and Solr, run:

ant compile

If you see an error about Ivy missing while invoking Ant (e.g., .ant/lib does not exist), run ant ivy-bootstrap and retry.

Sometimes you may face issues with Ivy (e.g., an incompletely downloaded artifact). Cleaning up the Ivy cache and retrying is a workaround for most of such issues:

rm -rf ~/.ivy2/cache

The Solr server can then be packaged and prepared for startup by running the following command from the solr/ directory:

ant server

Running Solr

After building Solr, the server can be started using the bin/solr control scripts. Solr can be run in either standalone or distributed (SolrCloud mode).

To run Solr in standalone mode, run the following command from the solr/ directory:

bin/solr start

To run Solr in SolrCloud mode, run the following command from the solr/ directory:

bin/solr start -c

The bin/solr control script allows heavy modification of the started Solr. Common options are described in some detail in solr/README.txt. For an exhaustive treatment of options, run bin/solr start -h from the solr/ directory.

Development/IDEs

Ant can be used to generate project files compatible with most common IDEs. Run the ant command corresponding to your IDE of choice before attempting to import Lucene/Solr.

  • Eclipse - ant eclipse
  • IntelliJ - ant idea
  • Netbeans - ant netbeans

Running Tests

The standard test suite can be run with the command:

ant test

Like Solr itself, the test-running can be customized or tailored in a number or ways. For an exhaustive discussion of the options available, run:

ant test-help

Contributing

Please review the Contributing to Solr Guide for information on contributing.

Discussion and Support