Class SchemaRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<SchemaResponse>
org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<SchemaResponse>
org.apache.solr.client.solrj.request.schema.AbstractSchemaRequest<SchemaResponse>
org.apache.solr.client.solrj.request.schema.SchemaRequest
- All Implemented Interfaces:
Serializable
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.
- Since:
- solr 5.3
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdds a new copy field rule to the schema of the specified collection.static classAdds a new dynamic field rule to the schema of the specified collection.static classAdds a new field definition to the schema.static classUpdate request used to add a new field type to the schema.static classSchema API request that retrieves the source and destination of each copy field in the schema.static classDeletes a copy field rule from the schema of the specified collection.static classDeletes a dynamic field rule from your schema.static classRemoves a field definition from the schema.static classRemoves a field type from the schema of the specified collection.static classSchema API request that lists the dynamic field definition for the specified field contained in the schema.static classSchema API request that lists the dynamic field definitions contained in the schema.static classSchema API request that lists the field definition for the specified field contained in the schema.static classSchema API request class that lists the field definitions contained in the schema.static classSchema API request that retrieves the type definitions for the specified field type contained in the schema.static classSchema API request that lists the types definitions contained in the schema.static classRetrieves the class name of the global similarity defined (if any) in the schema.static classThe Schema API offers the possibility to perform one or more add requests in a single command.static classReplaces a dynamic field rule in the schema of the specified collection.static classReplaces a field's definition.static classReplaces a field type in schema belonging to the schema of the specified collection.static classSchema API request class that can be used to retrieve the name of the schema.static classSchema API request that can be used to retrieve the version of the schema for the specified collection.static classSchema API request that retrieves the field name that is defined as the uniqueKey for the index of the specified collection.static classNested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SchemaResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.Methods inherited from class org.apache.solr.client.solrj.request.schema.AbstractSchemaRequest
getParamsMethods inherited from class org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest
requiresCollectionMethods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getApiVersion, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
SchemaRequest
public SchemaRequest()Default constructor. It can be used to retrieve the entire schema.- See Also:
-
SchemaRequest
-
-
Method Details
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<SchemaResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-