You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2008/03/04 21:56:46 UTC
svn commit: r633635 -
/lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java
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");
}