11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

schema The schema file name for a given core. The default is schema.xml but please note that if<br />

you are using a "managed schema" (the default behavior) then any value for this property<br />

which does not match the effective managedSchemaResourceName will be read once,<br />

backed up, and converted for managed schema use. See Schema Factory Definition in<br />

<strong>Solr</strong>Config for details.<br />

dataDir<br />

configSet<br />

properties<br />

The core's data directory (where indexes are stored) as either an absolute pathname, or a<br />

path relative to the value of instanceDir. This is data by default.<br />

The name of a defined configset, if desired, to use to configure the core (see the Config<br />

Sets for more details).<br />

The name of the properties file for this core. The value can be an absolute pathname or a<br />

path relative to the value of instanceDir.<br />

transient If true, the core can be unloaded if <strong>Solr</strong> reaches the transientCacheSize. The default<br />

if not specified is false. Cores are unloaded in order of least recently used first. Setting to t<br />

rue is not recommended in <strong>Solr</strong>Cloud mode.<br />

loadOnStartup If true, the default if it is not specified, the core will loaded when <strong>Solr</strong> starts. Setting to fals<br />

e is not recommended in <strong>Solr</strong>Cloud mode.<br />

coreNodeName Used only in <strong>Solr</strong>Cloud, this is a unique identifier for the node hosting this replica. By<br />

default a coreNodeName is generated automatically, but setting this attribute explicitly<br />

allows you to manually assign a new core to replace an existing replica. For example:<br />

when replacing a machine that has had a hardware failure by restoring from backups on a<br />

new machine with a new hostname or port..<br />

ulogDir<br />

shard<br />

collection<br />

roles<br />

The absolute or relative directory for the update log for this core (<strong>Solr</strong>Cloud).<br />

The shard to assign this core to (<strong>Solr</strong>Cloud).<br />

The name of the collection this core is part of (<strong>Solr</strong>Cloud).<br />

Future param for <strong>Solr</strong>Cloud or a way for users to mark nodes for their own use.<br />

Additional "user defined" properties may be specified for use as variables. For more information on how to define<br />

local properties, see the section Substituting Properties in <strong>Solr</strong> Config Files.<br />

CoreAdmin API<br />

The Core Admin API is primarily used under the covers by the Collections API when running a <strong>Solr</strong>Cloud cluster.<br />

<strong>Solr</strong>Cloud users should not typically use the CoreAdmin API directly – but it may be useful for users of<br />

single-node or master/slave <strong>Solr</strong> installations for core maintenance operations.<br />

The CoreAdmin API is implemented by the CoreAdminHandler, which is a special purpose <strong>Solr</strong>RequestHandler<br />

that is used to manage <strong>Solr</strong> cores. Unlike normal <strong>Solr</strong>RequestHandlers, the CoreAdminHandler is not attached to<br />

a single core. Instead, it there is a single instance of the CoreAdminHandler in each <strong>Solr</strong> node that manages all<br />

the cores running in that node and is accessible at the /solr/admin/cores path.<br />

CoreAdmin actions can be executed by via HTTP requests that specify an " action" request parameter, with<br />

additional action specific arguments provided as additional parameters.<br />

All action names are uppercase, and are defined in depth in the sections below.<br />

STATUS<br />

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

472

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

Saved successfully!

Ooh no, something went wrong!