How do I find out version of currently running Solr?

Solr

Solr Problem Overview


Please tell me how can I determine the version number of currently running solr ?

Solr Solutions


Solution 1 - Solr

On the Solr Admin page click on [INFO]. The next screen will have the version.

(For me, the Solr admin page is located here: http://{host-name-or-ip}:{port}/solr/admin, I found I was dealing with an older version. Solr Specification Version: 1.4.0 Solr Implementation Version: 1.4.0 833479)

info in Solr Admin

Solution 2 - Solr

With a HTTP GET request to:

yoursolrhost:8983/solr/admin/info/system

you'll retrieve a structure in many different representations (xml, json, php, python,...).

the lucene key of the structure contains version numbers.

For example, using json output:

http://yoursolrhost:8983/solr/admin/info/system?wt=json

The lucene key looks like this:

"lucene": {
    "solr-spec-version": "4.6.0",
    "solr-impl-version": "4.6.0 1543363 - simon - 2013-11-19 11:16:33",
    "lucene-spec-version": "4.6.0",
    "lucene-impl-version": "4.6.0 1543363 - simon - 2013-11-19 11:05:50"
},

Solution 3 - Solr

solr admin "infos" button links to "admin/registry.jsp"

so you can get the version with :

wget -O- "http://solr_ip_adress.lan:8080/solr/admin/registry.jsp" | grep 'solr-spec-version'

Solution 4 - Solr

You could use http://localhost:8983/solr/admin/info/system?wt=json to gather the details and Solr version too.

Tested on Solr v6.6.0

Solution 5 - Solr

Solution 6 - Solr

You can simply go to your Solr Dashboard page as in URL

http://localhost:8983/solr

Solution 7 - Solr

Assumption, you use version 3.6, port 8080. Go to http://localhost:8080/solr/default/admin/registry.jsp

You will see result:

Solr Implementation Version: 3.6.0 1310449 - rmuir - 2012-04-06 11:34:07

Solution 8 - Solr

From the command line of a Linux server running solr:

sudo service solr status

Depending on your version of Linux, I imagine you might have to modify that to use systemctl instead of service, or other means of calling the solr service.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkshamaView Question on Stackoverflow
Solution 1 - SolrJames LawrukView Answer on Stackoverflow
Solution 2 - SolrZacView Answer on Stackoverflow
Solution 3 - SolrbeavisView Answer on Stackoverflow
Solution 4 - SolrthePanzView Answer on Stackoverflow
Solution 5 - Solruser195488View Answer on Stackoverflow
Solution 6 - SolramitView Answer on Stackoverflow
Solution 7 - SolrJames GrahamView Answer on Stackoverflow
Solution 8 - SolrGG2View Answer on Stackoverflow