/ factorpad.com / tech / solr / reference / solr-help.html
An ad-free and cookie-free website.
Beginner
The first place to start when learning syntax and the purpose of
commands within the Solr script is by appending
help
or
-help
after the command. See below for
more information.
The solr help command has two purposes. It can be used to find general
help on the solr
script itself and
also to find usage, syntax and options for each of the commands within
the solr
script. There are 12 commands
within the solr
script; however, you
can access help for 10 of the 12 commands.
There are two ways to find help with the
solr
script for general help and for
command-specific help. This assumes your current working directory is
the $SOLR_HOME directory for Solr, which for version 7
would be in ~/solr-7.0.0
in
standalone mode for a local installation. When running in a production
environment the directory locations may differ.
So the path to the location of the solr script is:
~/solr-7.0.0/bin/solr
. Alternatively,
the solr
script can be run using the
convention ./solr
from within
the bin
directory.
When using a Solr Windows installation the solr script is called using
solr.cmd
.
To find general help on the bin/solr
script, including a list of the 12 commands, append
help
after a space from the
HOME directory.
Output from this general help lists all 12 commands. (The * notes where command-specific help is not available).
To find command-specific help append
-help
after the command name.
Where COMMAND is one of 10 commands. See below.
For each of the following 10 commands within the
bin/solr
script append
-help
after each command. The
bin/solr status
and
bin/solr version
commands do not
provide help.
Syntax | Purpose |
---|---|
bin/solr start -help |
Start Solr with settings such as foreground or background, cloud or standalone mode, ports, directories, example data sets and memory allocations. |
bin/solr stop -help |
Stop Solr instances by key, port or all. |
bin/solr restart -help |
Restart Solr with settings similar to the start command. |
bin/solr healthcheck -help |
Report health measures on collections or hosts. |
bin/solr create -help |
Create a core in standalone mode or a collection in SolrCloud mode with settings for name, directory, configurations, shards, replication and ports. |
bin/solr create_core -help |
Create a core in standalone mode with settings for naming the core, configurations and ports. |
bin/solr create_collection -help |
Create a collection in SolrCloud mode with settings for naming the collection and setting configurations, shards, replicas and ports. |
bin/solr delete -help |
Delete a core or collection with settings for configurations and ports. |
bin/solr zk -help |
Manage the zookeeper with options for copying, removing, moving, listing and creating directories and managing nodes. |
bin/solr auth -help |
Set the authentication type to use basic authentication or Kerberos including configurations and prompts. |
To print syntax and help for the
bin/solr
command append
help
without a dash.
Under Usage is the syntax for entering commands using
solr COMMAND OPTIONS
format.
To print options for the bin/solr stop
command append -help
.
To print help and syntax for the
bin/solr healthcheck
command append
-help
.
FactorPad offers Apache Solr Search content in both tutorials and reference.
Subscribe at YouTube and follow @factorpad on Twitter for reminders of new free learning content.
/ factorpad.com / tech / solr / reference / solr-help.html
A newly-updated free resource. Connect and refer a friend today.