Steven,

Some information can be gleaned from the "system" admin request handler:

http://localhost:8983/solr/admin/system

I am specifically looking at this:

<lst name="core"><str name="schema">example</str>

Mind you, that is a manually-set value in the schema file.  But just in case 
you want to get crazy you can also call the "file" admin request handler:

http://localhost:8983/solr/admin/file?file=schema.xml

…and parse the whole stinking thing :)

Jason


On Jul 6, 2013, at 1:59 PM, Steven Glass <steven.gl...@zekira.com> wrote:

> Does anyone have any idea how I can access the schema version info using 
> SolrJ?
> 
> Thanks.
> 
> 
> On Jul 3, 2013, at 4:16 PM, Steven Glass wrote:
> 
>> I'm using a Solr 4.3 server and accessing it from both a Java based desktop 
>> application using SolrJ and an Android based mobile application using my 
>> home-grown REST adaptor.  I'm trying to make sure that versions of the 
>> application are synchronized with updates to the server (too often testers 
>> forget to update an app when the server changes).  I want to read the schema 
>> version from the server and make sure it is the expected value.
>> 
>> This was very easy to do using my home-grown REST adaptor.  The wiki 
>> examples at http://wiki.apache.org/solr/SchemaRESTAPI were sufficient. 
>> 
>> Unfortunately, I cannot figure out how to do the equivalent with SolrJ.  I 
>> suspect that there is a really simple approach but I'm just missing it.
>> 
>> Thanks in advance for any guidance you can offer.
>> 
>> Best regards,
>> 
>> Steven Glass
> 

Reply via email to