Class SolrRequestParsers


  • public class SolrRequestParsers
    extends Object
    • Constructor Detail

      • SolrRequestParsers

        public SolrRequestParsers​(SolrConfig globalConfig)
        Pass in an xml configuration. A null configuration will enable everything with maximum values.
    • Method Detail

      • buildRequestFrom

        public SolrQueryRequest buildRequestFrom​(SolrCore core,
                                                 org.apache.solr.common.params.SolrParams params,
                                                 Collection<org.apache.solr.common.util.ContentStream> streams)
                                          throws Exception
        For embedded Solr use; not related to HTTP.
        Throws:
        Exception
      • parseQueryString

        public static org.apache.solr.common.params.MultiMapSolrParams parseQueryString​(String queryString)
        Given a url-encoded query string (UTF-8), map it into solr params
      • isHandleSelect

        public boolean isHandleSelect()
      • setHandleSelect

        public void setHandleSelect​(boolean handleSelect)
      • isAddRequestHeadersToContext

        public boolean isAddRequestHeadersToContext()
      • setAddRequestHeadersToContext

        public void setAddRequestHeadersToContext​(boolean addRequestHeadersToContext)
      • isEnableRemoteStreams

        public boolean isEnableRemoteStreams()
      • isMultipart

        public static boolean isMultipart​(javax.servlet.http.HttpServletRequest req)