public class ResponseLogComponent extends SearchComponent
"... hits=55 responseLog=22:0.71231794,44:0.61231794 status=0 ..."Add it to a requestHandler in solrconfig.xml like this:
<searchComponent name="responselog" class="solr.ResponseLogComponent"/> <requestHandler name="/select" class="solr.SearchHandler"> <lst name="defaults"> ... </lst> <arr name="components"> <str>responselog</str> </arr> </requestHandler>It can then be enabled at query time by supplying
responseLog=truequery parameter.
SolrInfoMBean.Category
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME |
Constructor and Description |
---|
ResponseLogComponent() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
String |
getSource()
CVS Source, SVN Source, etc
|
void |
prepare(ResponseBuilder rb)
Prepare the response.
|
void |
process(ResponseBuilder rb)
Process the request for this component
|
protected void |
processIds(ResponseBuilder rb,
DocList dl,
IndexSchema schema,
SolrIndexSearcher searcher) |
protected void |
processScores(ResponseBuilder rb,
DocList dl,
IndexSchema schema,
SolrIndexSearcher searcher) |
distributedProcess, finishStage, getCategory, getDocs, getName, getStatistics, getVersion, handleResponses, init, modifyRequest, setName
public static final String COMPONENT_NAME
public void prepare(ResponseBuilder rb) throws IOException
SearchComponent
SearchComponent.process(org.apache.solr.handler.component.ResponseBuilder)
method.
Called for every incoming request.
The place to do initialization that is request dependent.prepare
in class SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.public void process(ResponseBuilder rb) throws IOException
SearchComponent
process
in class SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.protected void processIds(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher) throws IOException
IOException
protected void processScores(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher) throws IOException
IOException
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class SearchComponent
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
getSource
in class SearchComponent
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.