mirror of https://github.com/apache/lucene.git
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:
parent
4f11226916
commit
f24266698e
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue