public abstract class SearchComponent extends Object implements SolrInfoMBean, NamedListInitializedPlugin
SolrInfoMBean.Category| Constructor and Description |
|---|
SearchComponent() |
| Modifier and Type | Method and Description |
|---|---|
int |
distributedProcess(ResponseBuilder rb)
Process for a distributed search.
|
void |
finishStage(ResponseBuilder rb)
Called after all responses have been received for this stage.
|
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
abstract String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
String |
getName()
Simple common usage name, e.g.
|
abstract String |
getSource()
CVS Source, SVN Source, etc
|
abstract String |
getSourceId()
CVS Id, SVN Id, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
abstract String |
getVersion()
Simple common usage version, e.g. 2.0
|
void |
handleResponses(ResponseBuilder rb,
ShardRequest sreq)
Called after all responses for a single request were received
|
void |
init(NamedList args) |
void |
modifyRequest(ResponseBuilder rb,
SearchComponent who,
ShardRequest sreq)
Called after another component adds a request
|
abstract void |
prepare(ResponseBuilder rb)
Prepare the response.
|
abstract void |
process(ResponseBuilder rb)
Process the request for this component
|
public abstract void prepare(ResponseBuilder rb) throws IOException
process(org.apache.solr.handler.component.ResponseBuilder) method.
Called for every incoming request.
The place to do initialization that is request dependent.rb - The ResponseBuilderIOExceptionpublic abstract void process(ResponseBuilder rb) throws IOException
rb - The ResponseBuilderIOExceptionpublic int distributedProcess(ResponseBuilder rb) throws IOException
IOExceptionpublic void modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
public void handleResponses(ResponseBuilder rb, ShardRequest sreq)
public void finishStage(ResponseBuilder rb)
public void init(NamedList args)
init in interface NamedListInitializedPluginpublic String getName()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic abstract String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic abstract String getSourceId()
SolrInfoMBeangetSourceId in interface SolrInfoMBeanpublic abstract String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic abstract String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeangetCategory in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeanpublic NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString() representation will be used.
getStatistics in interface SolrInfoMBean