mirror of https://github.com/apache/lucene.git
don't use the deprecated API for Booleanquery.add() anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150467 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4135d1f851
commit
0acf48a99e
|
@ -78,7 +78,7 @@ public class TestBooleanPrefixQuery extends TestCase {
|
|||
rw1 = query.rewrite(reader);
|
||||
|
||||
BooleanQuery bq = new BooleanQuery();
|
||||
bq.add(query, true, false);
|
||||
bq.add(query, BooleanClause.Occur.MUST);
|
||||
|
||||
rw2 = bq.rewrite(reader);
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue