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.
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME |
metricNames, registry, standard_components
Constructor and Description |
---|
ResponseLogComponent() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
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, getMetricNames, getMetricRegistry, getName, handleResponses, init, modifyRequest, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricsSnapshot, registerMetricName
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()
SolrInfoBean
getDescription
in interface SolrInfoBean
getDescription
in class SearchComponent
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.