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.

maxShardsPerNode integer No 1 When creating collections, the shards and/or<br />

replicas are spread across all available (i.e., live)<br />

nodes, and two replicas of the same shard will<br />

never be on the same node. If a node is not live<br />

when the CREATE operation is called, it will not<br />

get any parts of the new collection, which could<br />

lead to too many replicas being created on a<br />

single live node. Defining maxShardsPerNode s<br />

ets a limit on the number of replicas CREATE will<br />

spread to each node. If the entire collection can<br />

not be fit into the live nodes, no collection will be<br />

created at all.<br />

createNodeSet string No Allows defining the nodes to spread the new<br />

collection across. If not provided, the CREATE<br />

operation will create shard-replica spread across<br />

all live <strong>Solr</strong> nodes. The format is a<br />

comma-separated list of node_names, such as l<br />

ocalhost:8983_solr, localhost:8984_s<br />

olr, localhost:8985_solr. Alternatively,<br />

use the special value of EMPTY to initially create<br />

no shard-replica within the new collection and<br />

then later use the ADDREPLICA operation<br />

to add shard-replica when and where required.<br />

createNodeSet.shuffle boolean No true Controls wether or not the shard-replicas created<br />

for this collection will be assigned to the nodes<br />

specified by the createNodeSet in a sequential<br />

manner, or if the list of nodes should be shuffled<br />

prior to creating individual replicas. A 'false'<br />

value makes the results of a collection creation<br />

predictible and gives more exact control over the<br />

location of the individual shard-replicas, but 'true'<br />

can be a better choice for ensuring replicas are<br />

distributed evenly across nodes.<br />

Ignored if createNodeSet is not also specified.<br />

collection.configName string No empty Defines the name of the configurations (which<br />

must already be stored in ZooKeeper) to use for<br />

this collection. If not provided, <strong>Solr</strong> will default to<br />

the collection name as the configuration name.<br />

router.field string No empty If this field is specified, the router will look at the<br />

value of the field in an input document to<br />

compute the hash and identify a shard instead of<br />

looking at the uniqueKey field. If the field<br />

specified is null in the document, the document<br />

will be rejected. Please note that RealTime Get o<br />

r retrieval by id would also require the parameter<br />

_route_ (or shard.keys) to avoid a distributed<br />

search.<br />

property. name=<br />

value string No Set core property name to value. See the section<br />

Defining core.properties for details on supported<br />

properties and values.<br />

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

567

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

Saved successfully!

Ooh no, something went wrong!