Class SchemaRequest.AddField
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<T>
-
- 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
public static class SchemaRequest.AddField extends SchemaRequest.Update
Adds a new field definition to the schema. If the field already exists, the methodSolrRequest.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Method Summary
-
Methods inherited from class org.apache.solr.client.solrj.request.schema.SchemaRequest.Update
createResponse, getContentWriter
-
Methods inherited from class org.apache.solr.client.solrj.request.schema.AbstractSchemaRequest
getParams
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Constructor Detail
-
AddField
public AddField(Map<String,Object> fieldAttributes)
Creates a new instance of the request.- Parameters:
fieldAttributes- field type attributes that can be used to enrich the field definition.- See Also:
- Defining Solr fields
-
AddField
public AddField(Map<String,Object> fieldAttributes, SolrParams q)
-
-