lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r891193 - in /lucene/java/branches/lucene_2_9: CHANGES.txt src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
Date Wed, 16 Dec 2009 11:24:18 GMT
Author: mikemccand
Date: Wed Dec 16 11:24:17 2009
New Revision: 891193

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

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

Modified: lucene/java/branches/lucene_2_9/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/CHANGES.txt?rev=891193&r1=891192&r2=891193&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/CHANGES.txt (original)
+++ lucene/java/branches/lucene_2_9/CHANGES.txt Wed Dec 16 11:24:17 2009
@@ -21,6 +21,9 @@
    one of the threads before all changes are actually committed.
    (Sanne Grinovero via Mike McCandless)
 
+ * 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_2_9/CHANGES.txt
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Dec 16 11:24:17 2009
@@ -1 +1 @@
-/lucene/java/trunk/CHANGES.txt:886257,887532
+/lucene/java/trunk/CHANGES.txt:886257,887532,891189

Modified: lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java?rev=891193&r1=891192&r2=891193&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
(original)
+++ lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/DocFieldProcessorPerThread.java
Wed Dec 16 11:24:17 2009
@@ -243,8 +243,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