SOLR-334 fix: use defType if no type was specified in the local params for the query

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@633635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-03-04 20:56:44 +00:00
parent 4f11226916
commit f24266698e
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ public abstract class QParser {
if (localParams == null) { if (localParams == null) {
type = defaultType; type = defaultType;
} else { } else {
type = localParams.get(QueryParsing.TYPE); String localType = localParams.get(QueryParsing.TYPE);
type = localType == null ? defaultType : localType;
qstr = localParams.get("v"); qstr = localParams.get("v");
} }