lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r891191 - in /lucene/java/branches/lucene_3_0: CHANGES.txt src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
Date Wed, 16 Dec 2009 11:21:51 GMT
Author: mikemccand
Date: Wed Dec 16 11:21:50 2009
New Revision: 891191

URL: http://svn.apache.org/viewvc?rev=891191&view=rev
Log:
LUCENE-2166: don't keep warning about the same immense term

Modified:
    lucene/java/branches/lucene_3_0/CHANGES.txt   (contents, props changed)
    lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java

Modified: lucene/java/branches/lucene_3_0/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/CHANGES.txt?rev=891191&r1=891190&r2=891191&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/CHANGES.txt (original)
+++ lucene/java/branches/lucene_3_0/CHANGES.txt Wed Dec 16 11:21:50 2009
@@ -24,6 +24,9 @@
  * LUCENE-2132: Fix the demo result.jsp to use QueryParser with a 
    Version argument.  (Brian Li via Robert Muir)
 
+ * LUCENE-2166: Don't incorrectly keep warning about the same immense
+   term, when IndexWriter.infoStream is on.  (Mike McCandless)
+  
 Optimizations
 
  * LUCENE-2086: When resolving deleted terms, do so in term sort order

Propchange: lucene/java/branches/lucene_3_0/CHANGES.txt
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Dec 16 11:21:50 2009
@@ -1,4 +1,4 @@
 /lucene/java/branches/lucene_2_4/CHANGES.txt:748824
 /lucene/java/branches/lucene_2_9/CHANGES.txt:817269-818600,825998,829134,829881,831036
 /lucene/java/branches/lucene_2_9_back_compat_tests/CHANGES.txt:818601-821336
-/lucene/java/trunk/CHANGES.txt:881213,881315,881466,882374,882464,882672,882807,882888,882977,883074-883075,883554,883654,883661,884870,886257,886911,887532,887602,888247,889431-889432,890967,890988
+/lucene/java/trunk/CHANGES.txt:881213,881315,881466,882374,882464,882672,882807,882888,882977,883074-883075,883554,883654,883661,884870,886257,886911,887532,887602,888247,889431-889432,890967,890988,891189

Modified: lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java?rev=891191&r1=891190&r2=891191&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
(original)
+++ lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
Wed Dec 16 11:21:50 2009
@@ -245,8 +245,10 @@
     for(int i=0;i<fieldCount;i++)
       fields[i].consumer.processFields(fields[i].fields, fields[i].fieldCount);
 
-    if (docState.maxTermPrefix != null && docState.infoStream != null)
-      docState.infoStream.println("WARNING: document contains at least one immense term (longer
than the max length " + DocumentsWriter.MAX_TERM_LENGTH + "), all of which were skipped. 
Please correct the analyzer to not produce such terms.  The prefix of the first immense term
is: '" + docState.maxTermPrefix + "...'"); 
+    if (docState.maxTermPrefix != null && docState.infoStream != null) {
+      docState.infoStream.println("WARNING: document contains at least one immense term (longer
than the max length " + DocumentsWriter.MAX_TERM_LENGTH + "), all of which were skipped. 
Please correct the analyzer to not produce such terms.  The prefix of the first immense term
is: '" + docState.maxTermPrefix + "...'");
+      docState.maxTermPrefix = null;
+    }
 
     final DocumentsWriter.DocWriter one = fieldsWriter.finishDocument();
     final DocumentsWriter.DocWriter two = consumer.finishDocument();



Mime
View raw message