Fastest way I know of to get the schema is using the luke browser. http://localhost/solr/admin/luke It returns in xml and has tons of info you probably aren't interested it. However, it does contain information like fields and type.
-- Jeff Newburn Software Engineer, Zappos.com [email protected] - 702-943-7562 > From: "Fink, Clayton R." <[email protected]> > Reply-To: <[email protected]> > Date: Thu, 2 Apr 2009 17:29:38 -0400 > To: "[email protected]" <[email protected]> > Subject: Remote Access To Schema Data > > Hi: > > I want to get a list of the fields and field types for an index deployed on a > Solr server (over HTTP or embedded). I can't see any obvious way to do this as > a client. > > This is part of the use case for an app we are working on where all field > information for an index is available and we can programmatically format > updates and queries based on the available fields. > > Thanks, > > Clay Fink >
