lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r724032 - /lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj
Date Sat, 06 Dec 2008 19:40:53 GMT
Author: markrmiller
Date: Sat Dec  6 11:40:53 2008
New Revision: 724032

URL: http://svn.apache.org/viewvc?rev=724032&view=rev
Log:
A couple changes with the new token api went into QueryParser.java but not in QueryParser.jj.
A fresh javacc would lead to compilation errors.

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj

Modified: lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj?rev=724032&r1=724031&r2=724032&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj Sat Dec  6 11:40:53
2008
@@ -554,12 +554,12 @@
     org.apache.lucene.analysis.Token nextToken = null;
 
     
-    boolean useNewAPI = TokenStream.useNewAPI();
+    boolean useNewAPI = TokenStream.useNewAPIDefault();
     
     if (useNewAPI) {
       boolean success = false;
       try {
-        buffer.start();
+        buffer.reset();
         success = true;
       } catch (IOException e) {
         // success==false if we hit an exception



Mime
View raw message