You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/09/18 00:17:14 UTC

[Solr Wiki] Update of "SolrTomcat" by ChrisHarris

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ChrisHarris:
http://wiki.apache.org/solr/SolrTomcat

The comment on the change is:
Add new "Enabling Longer Query Requests" section

------------------------------------------------------------------------------
     * "/some/path/solr.war" is the absolute path to where ever you want to keep the Solr war using the appropriate syntax for your Operating System.  In Tomcat 5.5 and later, the war file must be stored outside of the webapps directory for this to work.  Otherwise, this entire Context element is ignored.
     * "/my/solr/home" should be to where you have createed your Solr Home directory, using the appropriate syntax for your Operating System.
     * Prior to Tomcat 5.5, a "path" attribute was required for Context elements (starting with 5.5, the path attribute must not be used except when statically defining a Context in server.xml, as it will be inferred from the Context fragment filename.
+ 
+ === Enabling Longer Query Requests ===
+ 
+ If you try to submit too long a GET query to Solr, then Tomcat will reject your HTTP request on the grounds that the HTTP header is too large; symptoms may include an HTTP 400 Bad Request error or (if you execute the query in a web browser) a blank browser window.
+ 
+ If you need to enable longer queries, you can set the maxHttpHeaderSize attribute on the HTTP Connector element in your server.xml file. The default value is 4K. (See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html)
  
  [[Anchor(MultiWebappJndi)]]
  == Multiple Solr Webapps ==