Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out version of currently running Solr?

Tags:

solr

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

like image 979
kshama Avatar asked Mar 07 '10 03:03

kshama


People also ask

Where is Solr installed?

Solr Home Directory By default, the installation script uses /var/solr/data .

How do I open the console in Solr?

Start the Server If you are running Windows, you can start Solr by running bin\solr. cmd instead. This will start Solr in the background, listening on port 8983. When you start Solr in the background, the script will wait to make sure Solr starts correctly before returning to the command line prompt.

How do I access Solr database?

Accessing the URL http://hostname:8983/solr/ will show the main dashboard, which is divided into two parts. A left-side of the screen is a menu under the Solr logo that provides the navigation through the screens of the UI.


2 Answers

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

like image 105
James Lawruk Avatar answered Oct 14 '22 01:10

James Lawruk


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" }, 
like image 42
Zac Avatar answered Oct 13 '22 23:10

Zac