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, init
static 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 PluginInfoInitialized
public 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 SolrCoreAware
public 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 RequestHandlerBase
java.lang.Exception
org.apache.lucene.queryParser.ParseException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class RequestHandlerBase
public java.lang.String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
getVersion
in class RequestHandlerBase
public java.lang.String getSourceId()
SolrInfoMBean
getSourceId
in interface SolrInfoMBean
getSourceId
in class RequestHandlerBase
public java.lang.String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
getSource
in class RequestHandlerBase