The version API shows the LucidWorks and Solr version and build information. This information should be supplied to support when requesting assistance, as it will help identify the version being used and will speed resolution of any problems.
API Entry Point
/api/version: show the version information
Get Version Information
GET /api/version
Input
Path Parameters
None.
Query Parameters
None.
Output
Output Content
A JSON list of version information in two sections labeled solr and lucidworks.
The Solr section contains the following information about the version of Solr embedded with LucidWorks:
| Key | Description |
|---|---|
| svn.repo | Address of the Subversion repository Solr was taken from. |
| build.user | The user who created the build. |
| git.repo | Address of the Git repository. |
| build.date | The date the build was made. |
| solr.svn.rev | The last revision ID of the Solr build. |
| git.commit | The last commit ID of the Solr build. |
| build.host | The machine that created the build. |
| build.os | The operating system that created the build. |
The LucidWorks section contains the following information about the LucidWorks software:
| Key | Description |
|---|---|
| environment | Describes how the build was made. |
| version | The LucidWorks version number. |
| build.user | The user who created the build. |
| hudson.build.number | The build number. |
| build.date | The date the build was made. |
| git.commit | The last commit ID of the LucidWorks build. |
| build.host | The machine that created the build. |
| build.os | The operating system that created the build. |
Response Codes
200: OK
Examples
Input
curl 'http://localhost:8888/api/version'
Output
{
"lucidworks": {
"build.date": "2012/03/13 12:53",
"build.host": "dev.lcimg.com",
"build.os": "Mac OS X",
"build.user": "hudson",
"environment": "production",
"git.commit": "65e9f82178a601c89fdee4f357a3ed44c78e5743",
"hudson.build.number": "3462",
"version": "2.1"
},
"solr": {
"build.date": "2012/03/12 10:34",
"build.host": "beast",
"build.os": "Linux",
"build.user": "rmuir",
"git.commit": "79e27b53705305866239f7206d92912a9c58c289",
"git.repo": "git@github.com:lucidimagination/lucene-solr.git",
"solr.svn.rev": "1296914",
"svn.repo": "http://svn.apache.org/repos/asf/lucene/dev/trunk"
}
}