Class AlfrescoLukeRequestHandler

  • All Implemented Interfaces:
    org.apache.solr.api.ApiSupport, org.apache.solr.core.SolrInfoMBean, org.apache.solr.handler.NestedRequestHandler, org.apache.solr.metrics.SolrMetricProducer, org.apache.solr.request.SolrRequestHandler

    public class AlfrescoLukeRequestHandler
    extends org.apache.solr.handler.RequestHandlerBase
    Author:
    Andy
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean

        org.apache.solr.core.SolrInfoMBean.Category, org.apache.solr.core.SolrInfoMBean.Group
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_COUNT  
      static java.lang.String DOC_ID  
      static java.lang.String ID  
      static java.lang.String INCLUDE_INDEX_FIELD_FLAGS  
      static java.lang.String NUMTERMS  
      • Fields inherited from class org.apache.solr.handler.RequestHandlerBase

        appends, defaults, httpCaching, initArgs, invariants
      • Fields inherited from interface org.apache.solr.request.SolrRequestHandler

        TYPE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.net.URL[] getDocs()  
      static org.apache.solr.common.util.SimpleOrderedMap<java.lang.String> getFieldFlagsKey()  
      protected static org.apache.lucene.document.Document getFirstLiveDoc​(org.apache.lucene.index.Terms terms, org.apache.lucene.index.LeafReader reader)  
      static org.apache.solr.common.util.SimpleOrderedMap<java.lang.Object> getIndexInfo​(org.apache.lucene.index.DirectoryReader reader)  
      static org.apache.solr.common.util.SimpleOrderedMap<java.lang.Object> getIndexInfo​(org.apache.lucene.index.DirectoryReader reader, boolean detail)
      Deprecated.
      use getIndexInfo(DirectoryReader) since you now have to explicitly pass the "fl" prameter and this was always called with "false" anyway from CoreAdminHandler
      void handleRequestBody​(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.response.SolrQueryResponse rsp)  
      • Methods inherited from class org.apache.solr.handler.RequestHandlerBase

        getApis, getCategory, getInitArgs, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSource, getStatistics, getSubHandler, getVersion, handleRequest, init, initializeMetrics, setPluginInfo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.solr.api.ApiSupport

        registerV1, registerV2
    • Constructor Detail

      • AlfrescoLukeRequestHandler

        public AlfrescoLukeRequestHandler()
    • Method Detail

      • handleRequestBody

        public void handleRequestBody​(org.apache.solr.request.SolrQueryRequest req,
                                      org.apache.solr.response.SolrQueryResponse rsp)
                               throws java.lang.Exception
        Specified by:
        handleRequestBody in class org.apache.solr.handler.RequestHandlerBase
        Throws:
        java.lang.Exception
      • getFieldFlagsKey

        public static org.apache.solr.common.util.SimpleOrderedMap<java.lang.String> getFieldFlagsKey()
        Returns:
        a key to what each character means
      • getFirstLiveDoc

        protected static org.apache.lucene.document.Document getFirstLiveDoc​(org.apache.lucene.index.Terms terms,
                                                                             org.apache.lucene.index.LeafReader reader)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getIndexInfo

        public static org.apache.solr.common.util.SimpleOrderedMap<java.lang.Object> getIndexInfo​(org.apache.lucene.index.DirectoryReader reader,
                                                                                                  boolean detail)
                                                                                           throws java.io.IOException
        Deprecated.
        use getIndexInfo(DirectoryReader) since you now have to explicitly pass the "fl" prameter and this was always called with "false" anyway from CoreAdminHandler
        Throws:
        java.io.IOException
      • getIndexInfo

        public static org.apache.solr.common.util.SimpleOrderedMap<java.lang.Object> getIndexInfo​(org.apache.lucene.index.DirectoryReader reader)
                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.apache.solr.core.SolrInfoMBean
        Specified by:
        getDescription in class org.apache.solr.handler.RequestHandlerBase
      • getDocs

        public java.net.URL[] getDocs()
        Specified by:
        getDocs in interface org.apache.solr.core.SolrInfoMBean
        Overrides:
        getDocs in class org.apache.solr.handler.RequestHandlerBase