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.

-cloud<br />

Start <strong>Solr</strong> in <strong>Solr</strong>Cloud mode, which will<br />

also launch the embedded ZooKeeper<br />

instance included with <strong>Solr</strong>.<br />

This option can be shortened to simply<br />

-c.<br />

If you are already running a ZooKeeper<br />

ensemble that you want to use instead<br />

of the embedded (single-node)<br />

ZooKeeper, you should also pass the -z<br />

parameter.<br />

For more details, see the section <strong>Solr</strong>Cl<br />

oud Mode below.<br />

bin/solr start -c<br />

-d Define a server directory, defaults to se<br />

rver (as in, $SOLR_HOME/server). It<br />

is uncommon to override this option.<br />

When running multiple instances of <strong>Solr</strong><br />

on the same host, it is more common to<br />

use the same server directory for each<br />

instance and use a unique <strong>Solr</strong> home<br />

directory using the -s option.<br />

-e Start <strong>Solr</strong> with an example<br />

configuration. These examples are<br />

provided to help you get started faster<br />

with <strong>Solr</strong> generally, or just try a specific<br />

feature.<br />

bin/solr start -d newServerDir<br />

bin/solr start -e schemaless<br />

The available options are:<br />

cloud<br />

techproducts<br />

dih<br />

schemaless<br />

See the section Running with Example<br />

Configurations below for more details<br />

on the example configurations.<br />

-f Start <strong>Solr</strong> in the foreground; you cannot<br />

use this option when running examples<br />

with the -e option.<br />

bin/solr start -f<br />

-h<br />

<br />

-m<br />

<br />

Start <strong>Solr</strong> with the defined hostname. If<br />

this is not specified, 'localhost' will be<br />

assumed.<br />

Start <strong>Solr</strong> with the defined value as the<br />

min (-Xms) and max (-Xmx) heap size<br />

for the JVM.<br />

bin/solr start -h search.mysolr.com<br />

bin/solr start -m 1g<br />

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

16

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

Saved successfully!

Ooh no, something went wrong!