public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse>
This class offers access to the operations exposed by the Solr Schema API.
Most of the operations of this class offer a very abstract interface avoiding
 in this manner eventual changes due to Solr Schema API updates. On the other
 hand, the creation of request parameters for creating new fields or field types
 can be tedious because it is not strongly typed (the user has to build on his own
 a NamedList argument containing the field/field type properties).
The class does not currently offer explicit support for the Schema API operations exposed through Managed Resources, but such operations can be built with little effort manually based on this class within the client applications.
This class is experimental and it is subject to change.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SchemaRequest.AddCopyFieldAdds a new copy field rule to the schema of the specified collection. | 
| static class  | SchemaRequest.AddDynamicFieldAdds a new dynamic field rule to the schema of the specified collection. | 
| static class  | SchemaRequest.AddFieldAdds a new field definition to the schema. | 
| static class  | SchemaRequest.AddFieldTypeUpdate request used to add a new field type to the schema. | 
| static class  | SchemaRequest.CopyFieldsSchema API request that retrieves the source and destination of
 each copy field in the schema. | 
| static class  | SchemaRequest.DefaultQueryOperatorRetrieves the default operator if it is defined in the schema. | 
| static class  | SchemaRequest.DeleteCopyFieldDeletes a copy field rule from the schema of the specified collection. | 
| static class  | SchemaRequest.DeleteDynamicFieldDeletes a dynamic field rule from your schema. | 
| static class  | SchemaRequest.DeleteFieldRemoves a field definition from the schema. | 
| static class  | SchemaRequest.DeleteFieldTypeRemoves a field type from the schema of the specified collection. | 
| static class  | SchemaRequest.DynamicFieldSchema API request that lists the dynamic field definition for the specified field
 contained in the schema. | 
| static class  | SchemaRequest.DynamicFieldsSchema API request that lists the dynamic field definitions contained in the schema. | 
| static class  | SchemaRequest.FieldSchema API request that lists the field definition for the specified field
 contained in the schema. | 
| static class  | SchemaRequest.FieldsSchema API request class that lists the field definitions contained in the schema. | 
| static class  | SchemaRequest.FieldTypeSchema API request that retrieves the type definitions for the specified field
 type contained in the schema. | 
| static class  | SchemaRequest.FieldTypesSchema API request that lists the types definitions contained
 in the schema. | 
| static class  | SchemaRequest.GlobalSimilarityRetrieves the class name of the global similarity defined (if any) in the schema. | 
| static class  | SchemaRequest.MultiUpdateThe Schema API offers the possibility to perform one or more add requests in a single command. | 
| static class  | SchemaRequest.ReplaceDynamicFieldReplaces a dynamic field rule in the schema of the specified collection. | 
| static class  | SchemaRequest.ReplaceFieldReplaces a field's definition. | 
| static class  | SchemaRequest.ReplaceFieldTypeReplaces a field type in schema belonging to the schema of the specified collection. | 
| static class  | SchemaRequest.SchemaNameSchema API request class that can be used to retrieve the name of the schema. | 
| static class  | SchemaRequest.SchemaVersionSchema API request that can be used to retrieve the version
 of the schema for the specified collection. | 
| static class  | SchemaRequest.UniqueKeySchema API request that retrieves the field name that is defined as
 the uniqueKey for the index of the specified collection. | 
| static class  | SchemaRequest.Update | 
SolrRequest.METHODSUPPORTED_METHODS| Constructor and Description | 
|---|
| SchemaRequest()Default constructor. | 
| SchemaRequest(SolrParams q) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected SchemaResponse | createResponse(SolrClient client)Create a new SolrResponse to hold the response from the server | 
getContentStreams, getParamsgetBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallbackpublic SchemaRequest()
SolrRequest.process(SolrClient)public SchemaRequest(SolrParams q)
protected SchemaResponse createResponse(SolrClient client)
SolrRequestcreateResponse in class SolrRequest<SchemaResponse>client - the SolrClient the request will be sent toCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.