lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject svn commit: r1306137 - /lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
Date Wed, 28 Mar 2012 03:30:52 GMT
Author: dsmiley
Date: Wed Mar 28 03:30:52 2012
New Revision: 1306137

URL: http://svn.apache.org/viewvc?rev=1306137&view=rev
Log:
SOLR-3161 register "/select" as the default request handler if it isn't already; mark constant
deprecated

Modified:
    lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java

Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java?rev=1306137&r1=1306136&r2=1306137&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
(original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
Wed Mar 28 03:30:52 2012
@@ -43,7 +43,9 @@ import org.slf4j.LoggerFactory;
 final class RequestHandlers {
   public static Logger log = LoggerFactory.getLogger(RequestHandlers.class);
 
+  /** @deprecated It's actually "/select" */
   public static final String DEFAULT_HANDLER_NAME="standard";
+
   protected final SolrCore core;
   // Use a synchronized map - since the handlers can be changed at runtime, 
   // the map implementation should be thread safe
@@ -184,7 +186,8 @@ final class RequestHandlers {
       }
     }
 
-    if(get("") == null) register("", get(DEFAULT_HANDLER_NAME));
+    if(get("") == null) register("", get(DEFAULT_HANDLER_NAME));//old-ish default handler
+    if(get("") == null) register("", get("/select"));//defacto default handler
   }
     
 



Mime
View raw message