/ factorpad.com / tech / solr / reference / solr-status.html
An ad-free and cookie-free website.
Beginner
As we build out custom search applications and evaluate Apache Solr
search versus Elasticsearch it is important to learn about server
instances and configurations quickly. This command allows you to do
just that. The solr status
command
offers a fast way to learn about modes, nodes, clusters, replicas,
cores and collections while offering locations of important files.
The solr status
command will poll the
Solr server for running processes and generate a report summarizing all
of the locations and settings. One of the unique aspects of the status
command is that it has no options. If no instances are
running it will provide a message and exit. If instances are running it
will provide a report and exit. So it is very limited in its
functionality, but provides helpful information quickly.
The solr status
command is one of 12
commands within the main solr
script.
The solr status
command itself has no
options. Everything after the command itself is ignored, meaning you
cannot run a status report only on a specific port.
The syntax for running solr status
is
as follows.
This syntax assumes your current working directory is
the $SOLR_HOME directory for Solr, which for version 7
would be ~/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.
If Solr Windows is your preferred environment for custom search, the
solr script is called using solr.cmd
.
The solr status
command takes no
options (parameters). It simply polls for running Solr server instances
and presents a JSON-formatted report of settings.
Syntax | Purpose | Default |
---|---|---|
bin/solr status |
Provide a status of running Solr instances. | No options |
Below is a list of items reported in JSON format when using the
bin/solr status
command in standalone
(one server) mode.
The following additional items are reported when Solr is run in SolrCloud mode.
As mentioned earlier, if no instances of Solr are present then you will see a message and the script will exit.
The status command does not have a traditional help similar to a man page for other commands. Any text entered after the command will be ignored and Solr will poll for instances and provide a report, if any instances are present.
The following commands will start a basic solr instance in standalone mode using default settings and then report its status.
FactorPad offers Apache Solr Search content in both tutorials and reference.
Before you forget, subscribe to our YouTube Channel and follow @factorpad more free opportunities to learn.
/ factorpad.com / tech / solr / reference / solr-status.html
A newly-updated free resource. Connect and refer a friend today.