Class V2UpdateRequestHandler

  • All Implemented Interfaces:
    AutoCloseable, ApiSupport, SolrInfoBean, NestedRequestHandler, SolrMetricProducer, SolrRequestHandler, PermissionNameProvider

    public class V2UpdateRequestHandler
    extends UpdateRequestHandler
    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.

    • Constructor Detail

      • V2UpdateRequestHandler

        public V2UpdateRequestHandler()
    • Method Detail

      • 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