Class ResponseLogComponent

  • All Implemented Interfaces:
    AutoCloseable, SolrInfoBean, SolrMetricProducer, NamedListInitializedPlugin

    public class ResponseLogComponent
    extends SearchComponent
    Adds to the log file the document IDs that are sent in the query response. If document scores are available in the response (by adding the pseudo- column 'score' to the field list) then each document ID will be followed by its score, as in:
     "... 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=true
    query parameter.