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
public class V2UpdateRequestHandler extends UpdateRequestHandler
An extension ofUpdateRequestHandler
used solely to register the v2 /update APIsAt core-load time, Solr looks at each 'plugin' in ImplicitPlugins.json, fetches the v2
Api
implementations associated with each RequestHandler, and registers them in anApiBag
. 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.HandlerMetrics
-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested 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, COMMIT, COMMIT_WITHIN, CSV_PATH, DELETE, DOC_PATH, JSON_PATH, loaders, OPTIMIZE, OVERWRITE, ROLLBACK, SOFT_COMMIT, VERSION, WAIT_SEARCHER
-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description V2UpdateRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Api>
getApis()
Returns any (non-JAX-RS annotated) APIs associated with this request handler.Boolean
registerV1()
Whether this should be made available at the regular legacy pathBoolean
registerV2()
Whether this request handler must be made available at the /v2/ path-
Methods inherited from class org.apache.solr.handler.UpdateRequestHandler
createDefaultLoaders, getCategory, getDescription, getPermissionName, init, newLoader, setAssumeContentType
-
Methods inherited from class org.apache.solr.handler.ContentStreamHandlerBase
handleRequestBody
-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, initializeMetrics, normalizeReceivedException, processErrorMetricsOnException, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Method Detail
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupport
Returns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApis
in interfaceApiSupport
- Overrides:
getApis
in classRequestHandlerBase
- See Also:
ApiSupport.getJerseyResources()
-
registerV1
public Boolean registerV1()
Description copied from interface:ApiSupport
Whether this should be made available at the regular legacy path
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupport
Whether this request handler must be made available at the /v2/ path
-
-