2592
Comment:
|
2693
|
Deletions are marked like this. | Additions are marked like this. |
Line 52: | Line 52: |
==Logging== When using Tomcat as a servlet, log files are contained in {{{/var/log/tomcat6/}}} |
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 the core configuration files located in /etc/solr need to be moved to a layer down in the file system. Instead, create a directory within /etc/solr for each core, with a conf directory inside that.
Add details of each core to /etc/solr/solr.xml, changing the instanceDir as required:
<cores defaultCoreName="core1" adminPath="/admin/cores" hostPort="8983"> <core instanceDir="core1/" name="core1"/> <core instanceDir="core2/" name="core2"/> </cores>
More information can be found at http://wiki.apache.org/solr/CoreAdmin
==Logging==
When using Tomcat as a servlet, log files are contained in /var/log/tomcat6/
Other documentation
Solr query syntax: http://wiki.apache.org/solr/SolrQuerySyntax
Solr FAQ: http://wiki.apache.org/solr/FAQ