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.
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.
solr status command is one of 12
commands within the main
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
This syntax assumes your current working directory is
the $SOLR_HOME directory for Solr, which for version 7
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 script can be run using the
./solr from within
If Solr Windows is your preferred environment for custom search, the
solr script is called using
solr status command takes no
options (parameters). It simply polls for running Solr server instances
and presents a JSON-formatted report of settings.
||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.
Subscribe to our YouTube Channel for more free opportunities to learn.