lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject svn commit: r1306703 - in /lucene/dev/trunk/solr: core/src/java/org/apache/solr/handler/PingRequestHandler.java example/solr/conf/solrconfig.xml
Date Thu, 29 Mar 2012 03:38:22 GMT
Author: dsmiley
Date: Thu Mar 29 03:38:21 2012
New Revision: 1306703

URL: http://svn.apache.org/viewvc?rev=1306703&view=rev
Log:
SOLR-3283 PingRequestHandler make qt optional

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java
    lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java?rev=1306703&r1=1306702&r2=1306703&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java Thu
Mar 29 03:38:21 2012
@@ -39,7 +39,6 @@ public class PingRequestHandler extends 
   public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception

   {
     SolrParams params = req.getParams();
-    SolrParams required = params.required();
     SolrCore core = req.getCore();
     
     // Check if the service is available
@@ -49,11 +48,11 @@ public class PingRequestHandler extends 
     }
     
     // Get the RequestHandler
-    String qt = required.get( CommonParams.QT );
+    String qt = params.get( CommonParams.QT );//optional; you get the default otherwise
     SolrRequestHandler handler = core.getRequestHandler( qt );
     if( handler == null ) {
       throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, 
-          "Unknown RequestHandler: "+qt );
+          "Unknown RequestHandler (qt): "+qt );
     }
     
     if( handler instanceof PingRequestHandler ) {

Modified: lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml?rev=1306703&r1=1306702&r2=1306703&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml Thu Mar 29 03:38:21 2012
@@ -1040,7 +1040,6 @@
   <!-- ping/healthcheck -->
   <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
     <lst name="invariants">
-      <str name="qt">search</str>
       <str name="q">solrpingquery</str>
     </lst>
     <lst name="defaults">



Mime
View raw message