lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject svn commit: r1306138 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
Date Wed, 28 Mar 2012 03:38:00 GMT
Author: dsmiley
Date: Wed Mar 28 03:37:59 2012
New Revision: 1306138

URL: http://svn.apache.org/viewvc?rev=1306138&view=rev
Log:
SOLR-3161 register "/select" as the default handler if it isn't already.  Remove old DEFAULT_HANDLER_NAME="standard"
constant which hasn't been used in a long time.

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

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java?rev=1306138&r1=1306137&r2=1306138&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java Wed Mar
28 03:37:59 2012
@@ -41,7 +41,6 @@ import org.slf4j.LoggerFactory;
 public final class RequestHandlers {
   public static Logger log = LoggerFactory.getLogger(RequestHandlers.class);
 
-  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
@@ -182,7 +181,7 @@ public final class RequestHandlers {
       }
     }
 
-    if(get("") == null) register("", get(DEFAULT_HANDLER_NAME));
+    if(get("") == null) register("", get("/select"));//defacto default handler
   }
     
 



Mime
View raw message