lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Programmatic Access to Solr schema?
Date Mon, 09 Aug 2010 14:22:05 GMT
Are you looking to get access to a remote schema?   You can pull  
schema.xml via HTTP using a URL like:


If you're accessing the schema from inside a custom Solr component  
then the IndexSchema API (which you can get to from pretty much any  
context you're in) is the way to go.


On Aug 9, 2010, at 3:43 AM, Aparna Chaudhary wrote:

> Hi,
> I need access to solr schema definition(schema.xml) file to perform  
> some
> validations while constructing the document. I see there is a
> class IndexSchema which provides information about the field metadata.
> How to get handle to this class?
> Aparna Chaudhary
> Twitter: @aparnachaudhary

View raw message