Custom search applications like Apache Solr update frequently as new features are added. When evaluating Apache Solr search versus Elasticsearch in a test environment for example, the main purpose is to evaluate use cases before moving on to production. When testing, most developers download the latest version and operate on one client or server machine.
In a production environment, typically in a distributed search mode like SolrCloud, system compatibilities and an upgrade path become more important. Incompatibilities and bugs can be introduced if not planned for properly, so the differences between versions become more important.
Other custom search offerings from Google Custom Search and Amazon CloudSearch, among others, manage server instances and upgrades so staying on top of changes across versions is less important.
For Solr specifically, Apache releases new versions as often as
quarterly, so the
solr version command
offers a fast way to see which version is installed.
solr version command simply
reports the version number and exits, returning the user to the
solr version command is one of 12
commands within the main
solr version command itself has no
options. If anything is entered after the command Solr returns output as
solr help command was entered.
The syntax for running
solr version 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 version command takes no
options (parameters). It simply returns the version of Apache Solr
search on the sytstem.
||Print the version of Solr installed.||No options|
The following command prints the version number and exits.
The version command does not have traditional help similar to a
man page for other commands. Any text entered after the command will be
ignored and Solr will provide an error and show valid Solr syntax
bin/solr help was entered.
FactorPad offers Apache Solr Search content in both tutorials and reference.
Subscribe to our YouTube Channel for more free opportunities to learn.