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, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNamepublic static final String COMPONENT_NAME
public void prepare(ResponseBuilder rb) throws IOException
SearchComponentSearchComponent.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 SearchComponentrb - The ResponseBuilderIOException - If there is a low-level I/O error.public void process(ResponseBuilder rb) throws IOException
SearchComponentprocess in class SearchComponentrb - The ResponseBuilderIOException - If there is a low-level I/O error.protected void processIds(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher) throws IOException
IOExceptionprotected void processScores(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher) throws IOException
IOExceptionpublic String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class SearchComponentCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.