You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/03/08 07:21:29 UTC
[Solr Wiki] Update of "SchemaRESTAPI" by SteveRowe
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SchemaRESTAPI" page has been changed by SteveRowe:
http://wiki.apache.org/solr/SchemaRESTAPI
New page:
= Schema REST API =
The Solr schema REST API provides information about the schema used by Solr cores and collections.
<!> Solr 4.2
Supported requests (URLs are for single/default core):
|| '''Schema component''' || '''HTTP method''' || '''Example URL''' || '''Supported query params''' || '''Default params''' ||
||<(|2> Fields || GET || [[http://localhost:8983/solr/schema/fields]] || wt, indent, fl, includeDynamic, showDefaults || ?wt=json&indent=on&showDefaults=false ||
|| GET || [[http://localhost:8983/solr/schema/fields/]]'''name''' || wt, indent, includeDynamic, showDefaults || ?wt=json&indent=on&showDefaults=false ||
||<(|2> Dynamic Fields || GET || [[http://localhost:8983/solr/schema/dynamicfields]] || wt, indent, fl, showDefaults || ?wt=json&indent=on&showDefaults=false ||
|| GET || [[http://localhost:8983/solr/schema/dynamicfields/]]'''name''' || wt, indent, showDefaults || ?wt=json&indent=on&showDefaults=false ||
||<(|2> Field Types || GET || [[http://localhost:8983/solr/schema/fieldtypes]] || wt, indent, showDefaults || ?wt=json&indent=on&showDefaults=false ||
|| GET || [[http://localhost:8983/solr/schema/fieldtypes/]]'''name''' || wt, indent, showDefaults || ?wt=json&indent=on&showDefaults=false ||
||<(> Copy Fields || GET || [[http://localhost:8983/solr/schema/copyfields]] || wt, indent, source.fl, dest.fl || ?wt=json&indent=on ||
To query schemas for a particular core or collection, add the core/collection after the context path (usually '/solr/'). E.g. to get all field declarations for collection1: [[http://localhost:8983/solr/collection1/schema/fields]]