public class SearchHandler extends RequestHandlerBase implements SolrCoreAware, PluginInfoInitialized
SolrInfoMBean.Category| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SearchComponent> |
components |
(package private) static java.lang.String |
INIT_COMPONENTS |
(package private) static java.lang.String |
INIT_FIRST_COMPONENTS |
(package private) static java.lang.String |
INIT_LAST_COMPONENTS |
protected static org.slf4j.Logger |
log |
private ShardHandlerFactory |
shardHandlerFactory |
private PluginInfo |
shfInfo |
appends, defaults, httpCaching, initArgs, invariants| Constructor and Description |
|---|
SearchHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SearchComponent> |
getComponents() |
protected java.util.List<java.lang.String> |
getDefaultComponents() |
java.lang.String |
getDescription()
Simple one or two line description
|
java.lang.String |
getSource()
CVS Source, SVN Source, etc
|
java.lang.String |
getSourceId()
CVS Id, SVN Id, etc
|
java.lang.String |
getVersion()
Simple common usage version, e.g.
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
inform(SolrCore core)
Initialize the components based on name.
|
void |
init(PluginInfo info) |
getCategory, getDocs, getInitArgs, getName, getStatistics, handleRequest, initstatic final java.lang.String INIT_COMPONENTS
static final java.lang.String INIT_FIRST_COMPONENTS
static final java.lang.String INIT_LAST_COMPONENTS
protected static org.slf4j.Logger log
protected java.util.List<SearchComponent> components
private ShardHandlerFactory shardHandlerFactory
private PluginInfo shfInfo
protected java.util.List<java.lang.String> getDefaultComponents()
public void init(PluginInfo info)
init in interface PluginInfoInitializedpublic 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 java.util.List<SearchComponent> getComponents()
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws java.lang.Exception, org.apache.lucene.queryParser.ParseException, java.lang.InstantiationException, java.lang.IllegalAccessException
handleRequestBody in class RequestHandlerBasejava.lang.Exceptionorg.apache.lucene.queryParser.ParseExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeangetDescription in class RequestHandlerBasepublic java.lang.String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeangetVersion in class RequestHandlerBasepublic java.lang.String getSourceId()
SolrInfoMBeangetSourceId in interface SolrInfoMBeangetSourceId in class RequestHandlerBasepublic java.lang.String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeangetSource in class RequestHandlerBase