mirror of https://github.com/apache/lucene.git
SOLR-657: fix a bug which was accidentally introduced when r701485 was committed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@719793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5b7feddcc
commit
e4e015758d
|
@ -71,9 +71,8 @@ class LuceneQParser extends QParser {
|
||||||
lparser.setDefaultOperator("AND".equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR);
|
lparser.setDefaultOperator("AND".equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR);
|
||||||
} else {
|
} else {
|
||||||
// try to get default operator from schema
|
// try to get default operator from schema
|
||||||
String operator = getReq().getSchema().getSolrQueryParser(null).getField();
|
QueryParser.Operator operator = getReq().getSchema().getSolrQueryParser(null).getDefaultOperator();
|
||||||
lparser.setDefaultOperator("AND".equals(operator) ?
|
lparser.setDefaultOperator(null == operator ? QueryParser.Operator.OR : operator);
|
||||||
QueryParser.Operator.AND : QueryParser.Operator.OR);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return lparser.parse(qstr);
|
return lparser.parse(qstr);
|
||||||
|
|
Loading…
Reference in New Issue