lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r891189 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
Date Wed, 16 Dec 2009 11:15:37 GMT
Author: mikemccand
Date: Wed Dec 16 11:15:36 2009
New Revision: 891189

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

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=891189&r1=891188&r2=891189&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Wed Dec 16 11:15:36 2009
@@ -53,6 +53,9 @@
 
 * LUCENE-2142: FieldCacheImpl.getStringIndex no longer throws an
   exception when term count exceeds doc count.  (Mike McCandless)
+
+* LUCENE-2166: Don't incorrectly keep warning about the same immense
+  term, when IndexWriter.infoStream is on.  (Mike McCandless)
   
 New features
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java?rev=891189&r1=891188&r2=891189&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java Wed
Dec 16 11:15:36 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