mirror of https://github.com/apache/lucene.git
use shorter expression
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@987005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01fa6f4216
commit
28445d6107
|
@ -74,8 +74,7 @@ public class QueryComponent extends SearchComponent
|
|||
}
|
||||
rb.setFieldFlags( fieldFlags );
|
||||
|
||||
String defType = params.get(QueryParsing.DEFTYPE);
|
||||
defType = defType==null ? QParserPlugin.DEFAULT_QTYPE : defType;
|
||||
String defType = params.get(QueryParsing.DEFTYPE,QParserPlugin.DEFAULT_QTYPE);
|
||||
|
||||
if (rb.getQueryString() == null) {
|
||||
rb.setQueryString( params.get( CommonParams.Q ) );
|
||||
|
|
Loading…
Reference in New Issue