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.

http://localhost:8983/solr/admin/collections?action=SPLITSHARD&collection=collection<br />

1&shard=shard1&async=1000<br />

Output<br />

<br />

<br />

0<br />

99<br />

<br />

1000<br />

<br />

Parameter <strong>Reference</strong><br />

Cluster Parameters<br />

numShards<br />

Defaults<br />

to 1<br />

The number of shards to hash documents to. There must be one leader per shard<br />

and each leader can have N replicas.<br />

<strong>Solr</strong>Cloud Instance Parameters<br />

These are set in solr.xml, but by default the host and hostContext parameters are set up to also work with<br />

system properties.<br />

host<br />

hostPort<br />

hostContext<br />

Defaults to<br />

the first local<br />

host address<br />

found<br />

Defaults to<br />

the port<br />

specified via<br />

bin/solr<br />

-p ,<br />

or 8983 if not<br />

specified.<br />

Defaults to so<br />

lr<br />

If the wrong host address is found automatically, you can override the host<br />

address with this parameter.<br />

The port that <strong>Solr</strong> is running on. This value is only used when -DzkRun is<br />

specified without a value (see below), to calculate the default port on which<br />

embedded ZooKeeper will run. In the solr.xml shipped with <strong>Solr</strong>, the hos<br />

tPort system property is not referenced, and so is ignored. If you want to<br />

run <strong>Solr</strong> on a non-default port, use bin/solr -p rather than<br />

specifying -DhostPort.<br />

The context path for the <strong>Solr</strong> web application.<br />

<strong>Solr</strong>Cloud Instance ZooKeeper Parameters<br />

zkRun<br />

Defaults to localhost:<br />

Causes <strong>Solr</strong> to run an embedded version of<br />

ZooKeeper. Set to the address of ZooKeeper on<br />

this node; this allows us to know who you are in the<br />

list of addresses in the zkHost connect string. Use<br />

-DzkRun (with no value) to get the default value.<br />

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

599

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

Saved successfully!

Ooh no, something went wrong!