72

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

Ravindra S
  • 6,302
  • 12
  • 70
  • 108
kshama
  • 1,637
  • 4
  • 18
  • 21

8 Answers8

62

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

James Lawruk
  • 30,112
  • 19
  • 130
  • 137
50

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"
},
Zac
  • 2,180
  • 2
  • 23
  • 36
14

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'

beavis
  • 149
  • 1
  • 2
11

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

thePanz
  • 349
  • 4
  • 6
5

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

http://localhost:8983/solr
amit
  • 363
  • 2
  • 10
  • 24
5

You need to query Solr using the SystemInfoHandler:

http://lucene.apache.org/solr/api/org/apache/solr/handler/admin/SystemInfoHandler.html

  • When clicked info on admin page i got Solr Specification Version: 1.4.0.2009.11.19.08.31.18 Solr Implementation Version: 1.5-dev 882138 - grantingersoll - 2009-11-19 08:31:18 so is it 1.5-dev that am using. – kshama Mar 07 '10 at 04:15
  • @kshama: yes, it's 1.5 svn revision 882138 – Mauricio Scheffer Mar 07 '10 at 04:37
  • 1
    Can you provide an example query in your answer? I am quite new to Solr. Thanks. – Brad Mar 01 '12 at 17:09
  • 2
    @Brad: I wish I could.. this answer is about 2 years old and I don't even remember answering :) –  Mar 01 '12 at 18:06
0

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
Vy Do
  • 46,709
  • 59
  • 215
  • 313
0

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.

GG2
  • 179
  • 10
  • Since I return to this SO result each time I have to look up how to do this again, I figure this answer is needed. – GG2 Dec 31 '21 at 03:54