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.

Specifying the DirectoryFactory For Your Index<br />

The default solr.StandardDirectoryFactory is filesystem based, and tries to pick the best implementation<br />

for the current JVM and platform. You can force a particular implementation by specifying solr.MMapDirector<br />

yFactory, solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.<br />

<br />

The solr.RAMDirectoryFactory is memory based, not persistent, and does not work with replication. Use<br />

this DirectoryFactory to store your index in RAM.<br />

<br />

If you are using Hadoop and would like to store your indexes in HDFS, you should use the solr.HdfsD<br />

irectoryFactory instead of either of the above implementations. For more details, see the section Ru<br />

nning <strong>Solr</strong> on HDFS.<br />

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

<strong>Solr</strong> allows loading plugins by defining directives in solrconfig.xml.<br />

The plugins are loaded in the order they appear in solrconfig.xml. If there are dependencies, list the lowest<br />

level dependency jar first.<br />

Regular expressions can be used to provide control loading jars with dependencies on other jars in the same<br />

directory. All directories are resolved as relative to the <strong>Solr</strong> instanceDir.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

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

<strong>Solr</strong>'s Schema API enables remote clients to access Schema information, and make Schema modifications,<br />

through a REST interface. Other features such as <strong>Solr</strong>'s Schemaless Mode also work via Schema modifications<br />

made programatically at run time.<br />

While the "read" features of the <strong>Solr</strong> API are supported for all Schema types, support for making Schema<br />

modifications programatically depends on the in use.<br />

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

438

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

Saved successfully!

Ooh no, something went wrong!