Differences between revisions 2 and 3
Revision 2 as of 2014-01-12 11:00:54
Size: 1937
Editor: ?AndrewBeverley
Comment:
Revision 3 as of 2014-01-12 11:03:11
Size: 2086
Editor: ?AndrewBeverley
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:

All configuration takes place in {{{/etc/solr}}}, although due to limitations of solr, the configuration is symlinked from {{{/usr/share/solr}}}.

Translation(s): none


Details about using Solr with Debian

Installation

Install either solr-tomcat or solr-jetty, depending which you want to use as your servlet container:

    apt-get install solr-tomcat

    apt-get install solr-jetty

The solr interface should now be available at http://localhost:8080/solr/admin/

Configuration

All configuration takes place in /etc/solr, although due to limitations of solr, the configuration is symlinked from /usr/share/solr.

A default configuration is included in the package, but it is not at all suited to production use. This wiki does not aim to be a manual on configuring solr, so please read full details at the following links:

solr.xml is the root configuration file for all solr cores: http://wiki.apache.org/solr/Solr.xml%20%28supported%20through%204.x%29

solrconfig.xml is the file that contains most of the parameters for configuring the core itself: http://wiki.apache.org/solr/SolrConfigXml

schema.xml contains all of the details about which fields your documents can contain, and how those fields should be dealt with when adding documents to the index, or when querying those fields: http://wiki.apache.org/solr/SchemaXml

Multicore

Multiple cores let you have a single Solr instance with separate configurations and indexes, with their own config and schema for very different applications.

The default Debian layout does not lend itself well to multicore, as

More information can be found at http://wiki.apache.org/solr/CoreAdmin

Other documentation

Solr query syntax: http://wiki.apache.org/solr/SolrQuerySyntax

Solr FAQ: http://wiki.apache.org/solr/FAQ