public class SearchHandler extends RequestHandlerBase implements SolrCoreAware, PluginInfoInitialized, PermissionNameProvider
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
protected List<SearchComponent> |
components |
appends, defaults, httpCaching, initArgs, invariants, metricManager, registryNameANY, NULL, valuesTYPE| Constructor and Description |
|---|
SearchHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<SearchComponent> |
getComponents() |
protected List<String> |
getDefaultComponents() |
String |
getDescription()
Simple one or two line description
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext ctx) |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
inform(SolrCore core)
Initialize the components based on name.
|
void |
init(PluginInfo info) |
protected ResponseBuilder |
newResponseBuilder(SolrQueryRequest req,
SolrQueryResponse rsp,
List<SearchComponent> components)
Override this method if you require a custom
ResponseBuilder e.g. |
Boolean |
registerV2()
Whether this request handler must be made available at the /v2/ path
|
getApis, getCategory, getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNameregisterV1protected volatile List<SearchComponent> components
public void init(PluginInfo info)
init in interface PluginInfoInitializedpublic PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
getPermissionName in interface PermissionNameProviderpublic void inform(SolrCore core)
INIT_FIRST_COMPONENTS or INIT_LAST_COMPONENTS,
then the DebugComponent will always occur last. If this is not desired, then one must explicitly declare all components using
the INIT_COMPONENTS syntax.inform in interface SolrCoreAwarepublic List<SearchComponent> getComponents()
protected ResponseBuilder newResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components)
ResponseBuilder e.g. for use by a custom SearchComponent.public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody in class RequestHandlerBaseExceptionpublic String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBasepublic Boolean registerV2()
ApiSupportregisterV2 in interface ApiSupportCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.