lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r633635 - /lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java
Date Tue, 04 Mar 2008 20:56:46 GMT
Author: yonik
Date: Tue Mar  4 12:56:44 2008
New Revision: 633635

URL: http://svn.apache.org/viewvc?rev=633635&view=rev
Log:
SOLR-334 fix: use defType if no type was specified in the local params for the query

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java?rev=633635&r1=633634&r2=633635&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java Tue Mar  4 12:56:44 2008
@@ -190,7 +190,8 @@
     if (localParams == null) {
       type = defaultType;
     } else {
-      type = localParams.get(QueryParsing.TYPE);
+      String localType = localParams.get(QueryParsing.TYPE);
+      type = localType == null ? defaultType : localType;
       qstr = localParams.get("v");
     }
 



Mime
View raw message