public static class SchemaRequest.AddField extends SchemaRequest.Update
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.SolrRequest.METHOD
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
AddField(Map<String,Object> fieldAttributes)
Creates a new instance of the request.
|
AddField(Map<String,Object> fieldAttributes,
SolrParams q) |
createResponse, getContentWriter
getParams
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
public AddField(Map<String,Object> fieldAttributes)
fieldAttributes
- field type attributes that can be used to enrich the field definition.public AddField(Map<String,Object> fieldAttributes, SolrParams q)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.