lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestBooleanPrefixQuery.java
Date Mon, 30 Aug 2004 20:49:34 GMT
dnaber      2004/08/30 13:49:34

  Modified:    src/test/org/apache/lucene/search
                        TestBooleanPrefixQuery.java
  Log:
  don't use the deprecated API for Booleanquery.add() anymore
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-lucene/src/test/org/apache/lucene/search/TestBooleanPrefixQuery.java
  
  Index: TestBooleanPrefixQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestBooleanPrefixQuery.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestBooleanPrefixQuery.java	29 Mar 2004 22:48:06 -0000	1.2
  +++ TestBooleanPrefixQuery.java	30 Aug 2004 20:49:34 -0000	1.3
  @@ -78,7 +78,7 @@
         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) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message