public class FieldResource extends BaseSolrResource implements GETable, PUTable
The GET method returns properties for the given fieldname. The "includeDynamic" query parameter, if specified, will cause the dynamic field matching the given fieldname to be returned if fieldname is not explicitly declared in the schema.
The PUT method accepts field addition requests in JSON format.
BaseSolrResource.SolrOutputRepresentation| Modifier and Type | Field and Description |
|---|---|
protected static String |
INCLUDE_DYNAMIC_PARAM |
SHOW_DEFAULTS, UPDATE_TIMEOUT_SECS| Constructor and Description |
|---|
FieldResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
doInit()
Pulls the "fl" param from the request and splits it to get the
requested list of fields.
|
org.restlet.representation.Representation |
get() |
protected SimpleOrderedMap<Object> |
getFieldProperties(SchemaField field)
Get the properties for a given field.
|
protected LinkedHashSet<String> |
getRequestedFields() |
org.restlet.representation.Representation |
put(org.restlet.representation.Representation entity)
Accepts JSON add field request, to URL
|
protected void |
waitForSchemaUpdateToPropagate(IndexSchema newSchema)
When running in cloud mode, waits for a schema update to be
applied by all active replicas of the current collection.
|
addDeprecatedWarning, getContentType, getSchema, getSolrCore, getSolrRequest, getSolrResponse, getUpdateTimeoutSecs, handleException, handlePostExecution, urlDecodeabort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensionsdoError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toStringprotected static final String INCLUDE_DYNAMIC_PARAM
public void doInit()
throws org.restlet.resource.ResourceException
Also pulls the "showDefaults" param from the request, for use by all subclasses to include default values from the associated field type in the response. By default this param is off.
org.restlet.resource.ResourceExceptionpublic org.restlet.representation.Representation get()
public org.restlet.representation.Representation put(org.restlet.representation.Representation entity)
protected LinkedHashSet<String> getRequestedFields()
protected SimpleOrderedMap<Object> getFieldProperties(SchemaField field)
field - not required to exist in the schemaprotected void waitForSchemaUpdateToPropagate(IndexSchema newSchema)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.