- 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:
Otis Gospodnetic 2002-07-14 17:22:36 +00:00
parent 4f9dc49cfb
commit 6f3df5f59f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}