Apache Lucene open-source search software
Revert "SOLR-3161 handleSelect=false by default now, and update solrconfig to not use it."
Dawid Weissd29d258ceedc
diff --git a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.javaindex 41a9c93cf35..a046633c03d 100644--- a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java+++ b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java@@ -63,7 +63,7 @@ public class SolrRequestParsersprivate HashMap<String, SolrRequestParser> parsers;private boolean enableRemoteStreams = false;- private boolean handleSelect = false;+ private boolean handleSelect = true;private StandardRequestParser standard;/**diff --git a/solr/example/solr/conf/solrconfig.xml b/solr/example/solr/conf/solrconfig.xmlindex d5167d6e4c8..a202ac6c367 100755--- a/solr/example/solr/conf/solrconfig.xml+++ b/solr/example/solr/conf/solrconfig.xml@@ -617,13 +617,17 @@This section contains instructions for how the SolrDispatchFiltershould behave when processing requests for this SolrCore.- If you wish to regain use of /select?qt=... style request handler- dispatching, then first add handleSelect="true" to- <requestDispatcher>. Then change the name of the request handler- named "/select" to something else without a leading "/", such as- simply "select" and add default="true" to it.+ handleSelect affects the behavior of requests such as /select?qt=XXX++ handleSelect="true" will cause the SolrDispatchFilter to process+ the request and dispatch the query to a handler specified by the+ "qt" param++ handleSelect="false" will cause the SolrDispatchFilter to+ ignore "/select" requests, resulting in a 404 unless a handler+ is explicitly registered with the name "/select"-->- <requestDispatcher>+ <requestDispatcher handleSelect="true" ><!-- Request ParsingThese settings indicate how Solr Requests may be parsed, and@@ -704,8 +708,16 @@http://wiki.apache.org/solr/SolrRequestHandler- Incoming requests will be dispatched to the handler with a name- equal to the remainder of the URL path, starting with a '/'.+ incoming queries will be dispatched to the correct handler+ based on the path or the qt (query type) param.++ Names starting with a '/' are accessed with the a path equal to+ the registered name. Names without a leading '/' are accessed+ with: http://host/app/[core/]select?qt=name++ If a /select request is processed with out a qt param+ specified, the requestHandler that declares default="true" will+ be used.If a Request Handler is declared with startup="lazy", then it willnot be initialized until the first request that uses it.@@ -720,7 +732,7 @@of SearchComponents (see below) and supports distributedqueries across multiple shards-->- <requestHandler name="/select" class="solr.SearchHandler">+ <requestHandler name="search" class="solr.SearchHandler" default="true"><!-- default values for query parameters can be specified, thesewill be overridden by parameters in the request-->@@ -1252,7 +1264,7 @@In reality you will likely want to add the component to youralready specified request handlers.-->- <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">+ <requestHandler name="tvrh" class="solr.SearchHandler" startup="lazy"><lst name="defaults"><bool name="tv">true</bool></lst>