From e2b3ce7028be99f5bd31293530f8f94b7e915353 Mon Sep 17 00:00:00 2001 From: David Wayne Smiley Date: Thu, 29 Mar 2012 04:37:51 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1306714 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/solr/core/RequestHandlers.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/core/RequestHandlers.java b/solr/core/src/java/org/apache/solr/core/RequestHandlers.java index daff33c57b8..34d481e2970 100644 --- a/solr/core/src/java/org/apache/solr/core/RequestHandlers.java +++ b/solr/core/src/java/org/apache/solr/core/RequestHandlers.java @@ -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,10 @@ public final class RequestHandlers { } } - if(get("") == null) register("", get(DEFAULT_HANDLER_NAME)); + if(get("") == null) register("", get("/select"));//defacto default handler + if(get("") == null) register("", get("standard"));//old default handler name; TODO remove? + if(get("") == null) + log.warn("no default request handler is registered (either '/select' or 'standard')"); }