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.

#core.properties<br />

name=collection2<br />

my.custom.prop=edismax<br />

The my.custom.prop property can then be used as a variable, such as in solrconfig.xml:<br />

<br />

<br />

${my.custom.prop}<br />

<br />

<br />

Implicit Core Properties<br />

Several attributes of a <strong>Solr</strong> core are available as "implicit" properties that can be used in variable substitution,<br />

independent of where or how they underlying value is initialized. For example: regardless of whether the name<br />

for a particular <strong>Solr</strong> core is explicitly configured in core.properties or inferred from the name of the instance<br />

directory, the implicit property solr.core.name is available for use as a variable in that core's configuration<br />

file...<br />

<br />

<br />

${solr.core.name}<br />

<br />

<br />

All implicit properties use the solr.core. name prefix, and reflect the runtime value of the equivalent core.pr<br />

operties property:<br />

solr.core.name<br />

solr.core.config<br />

solr.core.schema<br />

solr.core.dataDir<br />

solr.core.transient<br />

solr.core.loadOnStartup<br />

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

Specifying a Location for Index Data with the dataDir Parameter<br />

By default, <strong>Solr</strong> stores its index data in a directory called /data under the <strong>Solr</strong> home. If you would like to specify<br />

a different directory for storing index data, use the parameter in the solrconfig.xml file. You can<br />

specify another directory either with a full pathname or a pathname relative to the instance dir of the <strong>Solr</strong>Core.<br />

For example:<br />

/var/data/solr/<br />

If you are using replication to replicate the <strong>Solr</strong> index (as described in Legacy Scaling and Distribution), then the<br />

directory should correspond to the index directory used in the replication configuration.<br />

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

437

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

Saved successfully!

Ooh no, something went wrong!