You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2012/06/20 06:33:15 UTC

svn commit: r1351933 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/contrib/ solr/contrib/clustering/src/test-files/clustering/solr/conf/ solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/ solr/contrib/dataimporthandler/src/j...

Author: dsmiley
Date: Wed Jun 20 04:33:14 2012
New Revision: 1351933

URL: http://svn.apache.org/viewvc?rev=1351933&view=rev
Log:
SOLR-3313 Rename Query Type to Request Handler

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/contrib/   (props changed)
    lucene/dev/branches/branch_4x/solr/contrib/clustering/src/test-files/clustering/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/dataimport-solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrEntityProcessor.java
    lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/contentstream-solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-nodatasource-solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/extraction/src/test-files/extraction/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/request/SolrRequestHandler.java
    lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
    lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/example/   (props changed)
    lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/mail/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/rss/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/tika/conf/solrconfig.xml
    lucene/dev/branches/branch_4x/solr/solrj/   (props changed)
    lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
    lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
    lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java
    lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/MultiCoreExampleTestBase.java
    lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrQueryTest.java
    lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java

Modified: lucene/dev/branches/branch_4x/solr/contrib/clustering/src/test-files/clustering/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/clustering/src/test-files/clustering/solr/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/clustering/src/test-files/clustering/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/clustering/src/test-files/clustering/solr/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -265,7 +265,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/dataimport-solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/dataimport-solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/dataimport-solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/conf/dataimport-solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -219,7 +219,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrEntityProcessor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrEntityProcessor.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrEntityProcessor.java (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrEntityProcessor.java Wed Jun 20 04:33:14 2012
@@ -69,7 +69,7 @@ public class SolrEntityProcessor extends
   private int rows = ROWS_DEFAULT;
   private String[] filterQueries;
   private String[] fields;
-  private String queryType;
+  private String requestHandler;// 'qt' param
   private int timeout = TIMEOUT_SECS;
   
   private boolean initDone = false;
@@ -169,7 +169,7 @@ public class SolrEntityProcessor extends
     if (fieldsAsString != null) {
       this.fields = fieldsAsString.split(",");
     }
-    this.queryType = context.getResolvedEntityAttribute(CommonParams.QT);
+    this.requestHandler = context.getResolvedEntityAttribute(CommonParams.QT);
     String timeoutAsString = context.getResolvedEntityAttribute(TIMEOUT);
     if (timeoutAsString != null) {
       this.timeout = Integer.parseInt(timeoutAsString);
@@ -183,7 +183,7 @@ public class SolrEntityProcessor extends
         solrQuery.addField(field);
       }
     }
-    solrQuery.setQueryType(queryType);
+    solrQuery.setRequestHandler(requestHandler);
     solrQuery.setFilterQueries(filterQueries);
     solrQuery.setTimeAllowed(timeout * 1000);
     

Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/contentstream-solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/contentstream-solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/contentstream-solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/contentstream-solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -219,7 +219,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-nodatasource-solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-nodatasource-solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-nodatasource-solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-nodatasource-solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -221,7 +221,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/test-files/dih/solr/conf/dataimport-solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -219,7 +219,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/contrib/extraction/src/test-files/extraction/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/extraction/src/test-files/extraction/solr/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/extraction/src/test-files/extraction/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/extraction/src/test-files/extraction/solr/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -162,7 +162,7 @@
        based HashBitset. -->
 
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the qt (query type) param matching the
+     correct handler based on the 'qt' param matching the
      name of registered handlers.
       The "standard" request handler is the default and will be used if qt
      is not specified in the request.

Modified: lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/solr/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/solr/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -363,7 +363,7 @@
 
   <!--
     requestHandler plugins... incoming queries will be dispatched to the
-    correct handler based on the path or the qt (query type) param.
+    correct handler based on the path or the 'qt' 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/select?qt=name If no qt is defined, the

Modified: lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -363,7 +363,7 @@
 
   <!--
     requestHandler plugins... incoming queries will be dispatched to the
-    correct handler based on the path or the qt (query type) param.
+    correct handler based on the path or the 'qt' 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/select?qt=name If no qt is defined, the

Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/request/SolrRequestHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/request/SolrRequestHandler.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/request/SolrRequestHandler.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/request/SolrRequestHandler.java Wed Jun 20 04:33:14 2012
@@ -28,10 +28,10 @@ import org.apache.solr.response.SolrQuer
  * One way to register a SolrRequestHandler with the core is thorugh the <code>solrconfig.xml</code> file.
  * <p>
  * Example <code>solrconfig.xml</code> entry to register a <code>SolrRequestHandler</code> implementation to
- * handle all queries with a query type of "test":
+ * handle all queries with a Request Handler of "/test":
  * <p>
  * <code>
- *    &lt;requestHandler name="test" class="solr.tst.TestRequestHandler" /&gt;
+ *    &lt;requestHandler name="/test" class="solr.tst.TestRequestHandler" /&gt;
  * </code>
  * <p>
  * A single instance of any registered SolrRequestHandler is created

Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java Wed Jun 20 04:33:14 2012
@@ -234,7 +234,7 @@ public class SolrDispatchFilter implemen
                 if( qt != null && qt.startsWith("/") && (handler instanceof ContentStreamHandlerBase)) {
                   //For security reasons it's a bad idea to allow a leading '/', ex: /select?qt=/update see SOLR-3161
                   //There was no restriction from Solr 1.4 thru 3.5 and it's not supported for update handlers.
-                  throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Invalid query type.  Do not use /select to access: "+qt);
+                  throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Invalid Request Handler ('qt').  Do not use /select to access: "+qt);
                 }
               }
             }

Modified: lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -195,7 +195,7 @@
        based HashBitset. -->
 
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the qt (query type) param matching the
+     correct handler based on the 'qt' param matching the
      name of registered handlers.
       The "standard" request handler is the default and will be used if qt
      is not specified in the request.

Modified: lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -258,7 +258,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/mail/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/mail/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/mail/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/mail/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -283,7 +283,7 @@
 
 
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/rss/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/rss/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/rss/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/rss/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -258,7 +258,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/solr/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/solr/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -258,7 +258,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/tika/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/tika/conf/solrconfig.xml?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/tika/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/tika/conf/solrconfig.xml Wed Jun 20 04:33:14 2012
@@ -222,7 +222,7 @@
   
       
   <!-- requestHandler plugins... incoming queries will be dispatched to the
-     correct handler based on the path or the qt (query type) param.
+     correct handler based on the path or the 'qt' 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/select?qt=name

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java Wed Jun 20 04:33:14 2012
@@ -17,7 +17,6 @@
 
 package org.apache.solr.client.solrj;
 
-import org.apache.solr.client.solrj.util.ClientUtils;
 import org.apache.solr.common.params.CommonParams;
 import org.apache.solr.common.params.FacetParams;
 import org.apache.solr.common.params.HighlightParams;
@@ -26,7 +25,6 @@ import org.apache.solr.common.params.Sta
 import org.apache.solr.common.params.TermsParams;
 import org.apache.solr.common.util.DateUtil;
 
-import java.text.NumberFormat;
 import java.util.Date;
 import java.util.regex.Pattern;
 
@@ -709,22 +707,40 @@ public class SolrQuery extends Modifiabl
   }
 
   /**
-   * Query type used to determine the request handler. 
-   * @see org.apache.solr.client.solrj.request.QueryRequest#getPath()
-   * 
-   * @param qt Query Type that corresponds to the query request handler on the server.
+   * The Request Handler to use (see the solrconfig.xml), which is stored in the "qt" parameter.
+   * Normally it starts with a '/' and if so it will be used by
+   * {@link org.apache.solr.client.solrj.request.QueryRequest#getPath()} in the URL instead of the "qt" parameter.
+   * If this is left blank, then the default of "/select" is assumed.
+   *
+   * @param qt The Request Handler name corresponding to one in solrconfig.xml on the server.
    * @return this
    */
-  public SolrQuery setQueryType(String qt) {
+  public SolrQuery setRequestHandler(String qt) {
     this.set(CommonParams.QT, qt);
     return this;
   }
 
-  public String getQueryType() {
+  public String getRequestHandler() {
     return this.get(CommonParams.QT);
   }
 
   /**
+   * @deprecated See {@link #setRequestHandler(String)}.
+   */
+  @Deprecated
+  public SolrQuery setQueryType(String qt) {
+    return setRequestHandler(qt);
+  }
+
+  /**
+   * @deprecated See {@link #getRequestHandler()}.
+   */
+  @Deprecated
+  public String getQueryType() {
+    return getRequestHandler();
+  }
+
+  /**
    * @see ModifiableSolrParams#set(String,String[])
    * @param name
    * @param values

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java Wed Jun 20 04:33:14 2012
@@ -39,7 +39,7 @@ public interface CommonParams {
    */
   public static final String TZ = "TZ";
 
-  /** the query type - which query handler should handle the request */
+  /** the Request Handler (formerly known as the Query Type) - which Request Handler should handle the request */
   public static final String QT ="qt";
   
   /** the response writer type - the format of the response */

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java Wed Jun 20 04:33:14 2012
@@ -37,7 +37,7 @@ public interface ShardParams {
   /** The requested URL for this shard */
   public static final String SHARD_URL = "shard.url";
   
-  /** query type for shard requests */
+  /** The Request Handler for shard requests */
   public static final String SHARDS_QT = "shards.qt";
   
   /** Request detailed match info for each shard (true/false) */

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/MultiCoreExampleTestBase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/MultiCoreExampleTestBase.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/MultiCoreExampleTestBase.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/MultiCoreExampleTestBase.java Wed Jun 20 04:33:14 2012
@@ -203,7 +203,7 @@ public abstract class MultiCoreExampleTe
     catch( Exception ex ) {}
     assertEquals( 1, getSolrCore("corefoo").query( new SolrQuery( "id:BBB" ) ).getResults().size() );
 
-    NamedList<Object> response = getSolrCore("corefoo").query(new SolrQuery().setQueryType("/admin/system")).getResponse();
+    NamedList<Object> response = getSolrCore("corefoo").query(new SolrQuery().setRequestHandler("/admin/system")).getResponse();
     NamedList<Object> coreInfo = (NamedList<Object>) response.get("core");
     String indexDir = (String) ((NamedList<Object>) coreInfo.get("directory")).get("index");
     // test delete index on core

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrQueryTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrQueryTest.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrQueryTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrQueryTest.java Wed Jun 20 04:33:14 2012
@@ -166,7 +166,7 @@ public class SolrQueryTest extends Lucen
       assertEquals("foo", q.setQuery("foo").getQuery());
       assertEquals(10, q.setRows(10).getRows().intValue());
       assertEquals(10, q.setStart(10).getStart().intValue());
-      assertEquals("foo", q.setQueryType("foo").getQueryType());
+      assertEquals("foo", q.setRequestHandler("foo").getRequestHandler());
       assertEquals(10, q.setTimeAllowed(10).getTimeAllowed().intValue());
       
       // non-standard

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java?rev=1351933&r1=1351932&r2=1351933&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java Wed Jun 20 04:33:14 2012
@@ -57,7 +57,7 @@ public class TermsResponseTest extends S
     getSolrServer().commit(true, true);
 
     SolrQuery query = new SolrQuery();
-    query.setQueryType("/terms");
+    query.setRequestHandler("/terms");
     query.setTerms(true);
     query.setTermsLimit(5);
     query.setTermsLower("s");