Are you looking to get access to a remote schema? You can pull
schema.xml via HTTP using a URL like:
<http://localhost:8983/solr/admin/file/?file=schema.xml>
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.
Erik
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
http://blog.aparnachaudhary.net
Twitter: @aparnachaudhary