mirror of https://github.com/apache/lucene.git
- Added an explicit call to QueryParser to set the boolean operator to OR.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f9dc49cfb
commit
6f3df5f59f
|
@ -122,6 +122,7 @@ public class TestQueryParser extends TestCase {
|
|||
if (a == null)
|
||||
a = new SimpleAnalyzer();
|
||||
QueryParser qp = new QueryParser("field", a);
|
||||
qp.setOperator(QueryParser.DEFAULT_OPERATOR_OR);
|
||||
return qp.parse(query);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue