Package org.apache.solr.handler
Class V2UpdateRequestHandler
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.ContentStreamHandlerBase
org.apache.solr.handler.UpdateRequestHandler
org.apache.solr.handler.V2UpdateRequestHandler
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
An extension of
UpdateRequestHandler used solely to register the v2 /update APIs
At core-load time, Solr looks at each 'plugin' in ImplicitPlugins.json, fetches the v2 Api implementations associated with each RequestHandler, and registers them in an ApiBag. Since UpdateRequestHandler is mentioned multiple times in
ImplicitPlugins.json (once for each update API: /update, /update/json, etc.), this would cause
the v2 APIs to be registered in duplicate. To avoid this, Solr has this RequestHandler, whose
only purpose is to register the v2 APIs that conceptually should be associated with
UpdateRequestHandler.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetricsNested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.NameNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
Fields inherited from class org.apache.solr.handler.UpdateRequestHandler
ADD, BIN_PATH, CBOR_PATH, COMMIT, COMMIT_WITHIN, CSV_PATH, DELETE, DOC_PATH, JSON_PATH, loaders, OPTIMIZE, OVERWRITE, ROLLBACK, SOFT_COMMIT, VERSION, WAIT_SEARCHERFields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, publishCpuTime, REQUEST_CPU_TIMER_CONTEXT, solrMetricsContext, SOURCE_ATTRFields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, valuesFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTRFields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApis()Returns any (non-JAX-RS annotated) APIs associated with this request handler.Whether this should be made available at the regular legacy pathWhether this request handler must be made available at the /v2/ pathMethods inherited from class org.apache.solr.handler.UpdateRequestHandler
createDefaultLoaders, getCategory, getDescription, getPermissionName, init, newLoader, setAssumeContentTypeMethods inherited from class org.apache.solr.handler.ContentStreamHandlerBase
checkCircuitBreakers, handleRequestBodyMethods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResourcesMethods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
Constructor Details
-
V2UpdateRequestHandler
public V2UpdateRequestHandler()
-
-
Method Details
-
getApis
Description copied from interface:ApiSupportReturns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- See Also:
-
registerV1
Description copied from interface:ApiSupportWhether this should be made available at the regular legacy path -
registerV2
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path
-