11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Well-Configured <strong>Solr</strong> Instance<br />

This section tells you how to fine-tune your <strong>Solr</strong> instance for optimum performance. This section covers the<br />

following topics:<br />

Configuring solrconfig.xml: Describes how to work with the main configuration file for <strong>Solr</strong>, solrconfig.xml,<br />

covering the major sections of the file.<br />

<strong>Solr</strong> Cores and solr.xml: Describes how to work with solr.xml and core.properties to configure your <strong>Solr</strong><br />

core, or multiple <strong>Solr</strong> cores within a single instance.<br />

<strong>Solr</strong> Plugins: Introduces <strong>Solr</strong> plugins with pointers to more information.<br />

JVM Settings: Gives some guidance on best practices for working with Java Virtual Machines.<br />

The focus of this section is generally on configuring a single <strong>Solr</strong> instance, but for those interested in<br />

scaling a <strong>Solr</strong> implementation in a cluster environment, see also the section <strong>Solr</strong>Cloud. There are also<br />

options to scale through sharding or replication, described in the section Legacy Scaling and Distribution.<br />

Configuring solrconfig.xml<br />

The solrconfig.xml file is the configuration file with the most parameters affecting <strong>Solr</strong> itself. While<br />

configuring <strong>Solr</strong>, you'll work with solrconfig.xml often, either directly or via the Config API to create<br />

"Configuration Overlays" ( configoverlay.json) to override the values in solrconfig.xml.<br />

In<br />

solrconfig.xml, you configure important features such as:<br />

request handlers, which process the requests to <strong>Solr</strong>, such as requests to add documents to the index or<br />

requests to return results for a query<br />

listeners, processes that "listen" for particular query-related events; listeners can be used to trigger the<br />

execution of special code, such as invoking some common queries to warm-up caches<br />

the Request Dispatcher for managing HTTP communications<br />

the Admin Web interface<br />

parameters related to replication and duplication (these parameters are covered in detail in Legacy<br />

Scaling and Distribution)<br />

The solrconfig.xml file is located in the conf/ directory for each collection. Several well-commented<br />

example files can be found in the server/solr/configsets/ directories demonstrating best practices for<br />

many different types of installations.<br />

We've covered the options in the following sections:<br />

DataDir and DirectoryFactory in <strong>Solr</strong>Config<br />

Lib Directives in <strong>Solr</strong>Config<br />

Schema Factory Definition in <strong>Solr</strong>Config<br />

IndexConfig in <strong>Solr</strong>Config<br />

RequestHandlers and SearchComponents in <strong>Solr</strong>Config<br />

InitParams in <strong>Solr</strong>Config<br />

UpdateHandlers in <strong>Solr</strong>Config<br />

Query Settings in <strong>Solr</strong>Config<br />

RequestDispatcher in <strong>Solr</strong>Config<br />

Update Request Processors<br />

Codec Factory<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

435

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!