Class SchemaRequest.AddField
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<SchemaResponse.UpdateResponse>
org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<SchemaResponse.UpdateResponse>
org.apache.solr.client.solrj.request.schema.AbstractSchemaRequest<SchemaResponse.UpdateResponse>
org.apache.solr.client.solrj.request.schema.SchemaRequest.Update
org.apache.solr.client.solrj.request.schema.SchemaRequest.AddField
- All Implemented Interfaces:
Serializable
- Enclosing class:
SchemaRequest
Adds a new field definition to the schema. If the field already exists, the method
SolrRequest.process(SolrClient, String) will fail. Note that the request will be translated to json, so
please use concrete values (e.g. : true, 1) instead of their string representation (e.g. :
"true", "1") for the field attributes expecting boolean or number values.- See Also:
-
Nested Class Summary
Nested 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
Methods inherited from class org.apache.solr.client.solrj.request.schema.SchemaRequest.Update
createResponse, getContentWriterMethods 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, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
AddField
Creates a new instance of the request.- Parameters:
fieldAttributes- field type attributes that can be used to enrich the field definition.- See Also:
-
AddField
-
-
Method Details
-
getRequestParameters
- Specified by:
getRequestParametersin classSchemaRequest.Update
-